[PHP] Splice problem

2003-09-18 Thread Stevie D Peele
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

RE: [PHP] Splice problem

2003-09-18 Thread Jay Blanchard
[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 -- PHP

Re: [PHP] Splice problem

2003-09-18 Thread CPT John W. Holmes
From: Stevie D Peele [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. That's