mysql - Export each array item into a separate variable PHP -
is possible gather each array variable , place own variable. sort of this:
$array = array('music', 'video_games', 'photos', 'movies'); $count = count($array); $i = 0; while ($i < $count) { $array_val_1 = $array[0]; $i++ }
$array_val_1
, $array[0]
have increment each time while loop goes around $array_val_2
, $array[1]
how this. because have array of checkboxes, won't know how variables there in array.
sounds looking extract. example docs:
$var_array = array("color" => "blue", "size" => "medium", "shape" => "sphere"); extract($var_array); echo "$color, $size, $shape";
Comments
Post a Comment