Hmm .. thanks .. but shortly after posting I came to this idea that I might want to use array_shift(); for this one .. works with numerical indices ....
Out of interest, is it really impossible to get such a thing for string indices? -> -----Oorspronkelijk bericht----- -> Van: John W. Holmes [mailto:[EMAIL PROTECTED] -> Verzonden: zondag 24 augustus 2003 17:34 -> Aan: Wouter van Vliet -> CC: PHP General -> Onderwerp: Re: [PHP] Array element from function return -> -> -> Wouter van Vliet wrote: -> -> > I'm trying to get the first element of a value returned by a -> function .. -> > -> > == example == -> > function return_Array() { -> > return ('one', 'zwei', 'kolm', 'vier'); -> > } -> > -> > print return_Array()[0]; -> > ==/ example == -> > -> > Now i'd like this script to print 'one' for me .. can it be -> done without -> > creating a temporary variable? -> -> No, use a temporary variable. -> -> -- -> ---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 -> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php