Ilia Alshanetsky wrote:
Looks good to me, although I'd prefer you returned an associated
array rather then an object.

What for do we have object dereferencing then? As gimmick or buzzword?


$err = error_get_last();
echo $err["message"];

vs.

echo error_get_last()->message;


One can still cast the stdClass instance to an array.

--
Michael

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to