Verify whether a received input parameter is “stringable”.
Parameters
$input
mixedrequired- Input parameter to verify.
Source
public static function is_stringable_object($input) {
return is_object($input) && method_exists($input, '__toString');
}
Verify whether a received input parameter is “stringable”.
$input
mixedrequiredpublic 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.