the row is for example: "me, you, they, us" and i want that after every "," a new array value will be made...
Code: Select all
$arr=array("one" => "me", "two" => "you", "three" => "they", "four" => us);Moderator: General Moderators
Code: Select all
$arr=array("one" => "me", "two" => "you", "three" => "they", "four" => us);Code: Select all
<?php
$num=0;
$r=... //the database stuff... (mouse_1, mouse_2, ..._3)
$mice=$r['mice'];
$mice_total=array($mice);
foreach($mice as &$mouse) {
echo "$mouse[$num]";
++$num;
}
?>