$Xn = count($where = array(1, 2, 3, 4, 5, ... , $n))/3;
where $n is multiple of 3 objects!!!
for($i = 1; $i <= ($Xn); $i++) {
$field[$Xn-$i] = $where[(3*$i)-3];
$operator[$Xn-$i] = $where[(3*$i)-2];
$value[$Xn-$i] = $where[(3*$i)-1];
}
all i want is to create a big array with all values inside! like this:
array($field[0], $operator[0], $value[0], $field[1], $operator[1], $value[1], $field[2], $operator[2], $value[2]...)
or 3 small arrays like this:
$field_$n = array($field[0], $field[1], $field[2]...)
etc.. how can this be done? thanks in advance!!!