Re: Splice problem
| From: | Daniel Souza | Date: | Fri, 19 Sep 2003 01:13:35 +0000 |
| Subject: | Re: Splice problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163079@lists.php.net to get a copy of this message | ||
$input = array("red", "green", "blue", "yellow");
array_splice($input, 2);
echo implode(',', $input);
[]'s
Daniel Souza
"Stevie D Peele" <sdp2006@juno.com> escreveu na mensagem
news:20030918.165522.404.0.SDP2006@juno.com...
> 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!