InputValidator::is_string_or_stringable( mixed $input ): bool

In this article

Verify that a received input parameter is of type string or is “stringable”.

Parameters

$inputmixedrequired
Input parameter to verify.

Return

bool

Source

public static function is_string_or_stringable($input) {
	return is_string($input) || self::is_stringable_object($input);
}

User Contributed Notes

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