InputValidator::has_array_access( mixed $input ): bool

In this article

Verify whether a received input parameter is _accessible as if it were an array_.

Parameters

$inputmixedrequired
Input parameter to verify.

Return

bool

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.