RE: [PHP] Splice problem
| From: | Jay Blanchard | Date: | Thu, 18 Sep 2003 21:04:23 +0000 |
| Subject: | RE: [PHP] Splice problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163057@lists.php.net to get a copy of this message | ||
[snip]
My problem is that I am splicing an array and then echoing the array
[code]
<?php
$input = array("red", "green", "blue", "yellow");
array_splice($input, 2);
echo $input;
?>
[/snip]
Shoulda kept readin', $input is now an array with red and green in it.
http://www.php.net/array_splice