Verify whether a received input parameter is _accessible as if it were an array_.
Parameters
$input
mixedrequired- Input parameter to verify.
Source
public static function has_array_access($input) {
return is_array($input) || $input instanceof ArrayAccess;
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.