Mag wrote:

Hi,
I will be getting input from a textarea and then I am
using "explode" to break the text into an array when
it encounters a space.

eg:
one two three four ninty
would be broken into 5 parts of an array.

** The array would then be put into a session ** now I need to display the last part (which would be
"ninty" using the above example) then take out the
last part from the array then echo the next last part
(which would be "four") then take out the last part
(using unset? ) etc etc so I have something like:


Displaying Array : ninty
(deleteing ninty)
four
(deleteing four)
three
(deleteing three)
etc


I have been reading the manual and have come this far,
then I think I have to use the array splice function..
Am totally confused, any help, links, tutorials,
pointers, tips or code would be appreciated.

Why not just use array_reverse() and then print them out in order using foreach?


--

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

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



Reply via email to