Posted by Jerry Stuckle on 04/25/07 01:59
Skeleton Man wrote:
> Hi all,
>
> I'm after the PHP equivlent to this Perl construct:
>
> print @{[someFunctionCall()]}[0];
>
> In the above example someFunctionCall() would return an array, and we're
> printing the first item from the returned array..
>
> How do I do this in PHP ? (without first assigning the output of the
> function call to a variable)
>
> Chris
>
>
Chris,
I don't think you can.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|