InputValidator::is_stringable_object( mixed $input ): bool

In this article

Verify whether a received input parameter is “stringable”.

Parameters

$inputmixedrequired
Input parameter to verify.

Return

bool

Source

public static function is_stringable_object($input) {
	return is_object($input) && method_exists($input, '__toString');
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.