WpOrg\Requests\Utility
InputValidator::is_stringable_object()
Verify whether a received input parameter is "stringable".
Method of the class: InputValidator{}
No Hooks.
Return
true|false
.
Usage
$result = InputValidator::is_stringable_object( $input );
- $input(mixed) (required)
- Input parameter to verify.
InputValidator::is_stringable_object() InputValidator::is stringable object code WP 6.6.2
public static function is_stringable_object($input) { return is_object($input) && method_exists($input, '__toString'); }