Welcome to WebmasterWorld Guest from 184.108.40.206
example: (longhand I am trying to avoid)
is there some way to do a shorthand like this?
Thanks for any help!
hehe. Sorry, couldn't resist.
To the best of my knowledge, no, well, not without jumping through hoops first. The point I am making here is that you already know which one you want, why go through the necessary steps to build the array? OK, I guess you could argue that it is all dynamic...Well, here is one example of jumping through the hoops
echo (array_pop(array_slice(array("apples","pears","oranges","bananas"), 1, 1)));
In the end I figured I'll just build a simple function to take the raw array and return the string so I don't have to repeat all that code.