$input = array("red", "green", "blue", "yellow");
array_splice($input, 2);
echo implode(',', $input);

[]'s
Daniel Souza


"Stevie D Peele" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> 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!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to