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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -