Re: is_array on objects with ArrayAccess or Iterator implementations
| From: | Clint Priest | Date: | Mon, 28 Dec 2009 23:04:06 +0000 |
| Subject: | Re: is_array on objects with ArrayAccess or Iterator implementations | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46561@lists.php.net to get a copy of this message | ||
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