Unfortunately $x instanceOf ArrayAccess doesn't return true when $x is indeed an array.

Jille Timmermans wrote:
Op 28-12-2009 17:30, Clint Priest schreef:
Has there been any discussion or decision about whether is_array()
should return true for objects which implement ArrayAccess or is there
another function already available which checks for either being the case?

How about $x instanceOf ArrayAccess ?

-- Jille

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

Reply via email to