Hi
I am using array_unique to retrieve just two values from my selected itens
So if i have two tables to search in my query i do not allow a join cartesian product
I notice using array_walk that the keys from the array if more than two itens are selected are not in order like: 0, 1
I would like to order the array so it can have the keys 0 and 1
and not 0 and 2 or 0 and 4 and so on ..
Wich function can i use?
I just want to transform the key after key zero to key one if the key is not one
for ( $j=0; $j<$count; $j++ ){
$query .= $array_table[$j].".".$array_select_item[$j];
if ( $j < ($count -1 ) ){
$query .= " = ";
}
}