The code below generates an associative array (key=>value), how can I have a non-associative array (e.g. just keys)? e.g. array('1','2','3','4','5');
$join_have = array();
$join_need = array();
array_push($join_have,$row2['id']);
array_push($join_need,$row3['id']);
I'm trying to construct two arrays to compare the database autoincrement id's for a JOIN table. The JOIN table is one of three (it allows unlimited number of associations instead of statically adding columns in the tables).
The point is to determine what JOIN table id's I have to keep, what I will DELETE and what I will INSERT for id's.
0. what is it that you want?array_keys().