Hi,
I want to add values to an array, and I have followed the instructions of the Php Web site in this regard, but I am getting Error!
here is the simple sample array created:
$array_list = array();
$em1 = ‘d@s.com’;
$array_list = array_push($array_list, $em1);
echo ‘<p>’ . $array_list[0];
$em2 = ‘g@l.com’;
$array_list = array_push($array_list, $em2);
echo ‘<p>’ . $array_list[1];
But when I go to this Web page, to see the results, instead I get this Error:
Warning: array_push() [function.array-push]: First argument should be an array in /var/www/html/anoox.com/test/array_insert.php on line 23
What gives!
ThanX,