Richard K Miller wrote:
If abc() returns an array, is there any possible notation that lets me
access a single element?
echo abc()[0]; // I wish this were possible
...instead of having to use an intermediate variable?
$temp = abc(); // $temp is ugly
PHP 5.2 does seem to support t
If abc() returns an array, is there any possible notation that
lets me access a single element?
echo abc()[0]; // I wish this were possible
...instead of having to use an intermediate variable?
$temp = abc(); // $temp is ugly
echo $temp[0];
echo current(abc());
Maybe it will be faster if
Richard K Miller wrote:
If abc() returns an array, is there any possible notation that lets
me access a single element?
echo abc()[0]; // I wish this were possible
...instead of having to use an intermediate variable?
$temp = abc(); // $temp is ugly
echo $temp[0];
echo current(abc());
If abc() returns an array, is there any possible notation that lets
me access a single element?
echo abc()[0]; // I wish this were possible
...instead of having to use an intermediate variable?
$temp = abc(); // $temp is ugly
echo $temp[0];
echo current(abc());
Maybe it will be faste
On Thu, Jan 29, 2009 at 2:55 PM, Richard K Miller
wrote:
> If abc() returns an array, is there any possible notation that lets me
>>> access a single element?
>>> echo abc()[0]; // I wish this were possible
>>> ...instead of having to use an intermediate variable?
>>> $temp = abc(); // $te
Richard K Miller wrote:
If abc() returns an array, is there any possible notation that lets
me access a single element?
echo abc()[0]; // I wish this were possible
...instead of having to use an intermediate variable?
$temp = abc(); // $temp is ugly
echo $temp[0];
echo current(abc
If abc() returns an array, is there any possible notation that lets
me access a single element?
echo abc()[0]; // I wish this were possible
...instead of having to use an intermediate variable?
$temp = abc(); // $temp is ugly
echo $temp[0];
echo current(abc());
Thanks, Ray. What
Richard K Miller wrote:
If abc() returns an array, is there any possible notation that lets me
access a single element?
echo abc()[0]; // I wish this were possible
...instead of having to use an intermediate variable?
$temp = abc(); // $temp is ugly
echo $temp[0];
echo curre
If abc() returns an array, is there any possible notation that lets me
access a single element?
echo abc()[0]; // I wish this were possible
...instead of having to use an intermediate variable?
$temp = abc(); // $temp is ugly
echo $temp[0];
Richard