Verify that a received input parameter is of type string or is “stringable”.
Parameters
$input
mixedrequired- Input parameter to verify.
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.