Splice problem
| From: | Stevie D Peele | Date: | Thu, 18 Sep 2003 20:55:22 +0000 |
| Subject: | Splice problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163056@lists.php.net to get a copy of this message | ||
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;
?>
[/code]
and all that is echoed is "Array." I want red green to be echoed.
Thanks
________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!