Determines whether imput is yes or no.
Description
Must be ‘y’ to be true.
Parameters
-
$ynstring required -
Character string containing either
'y'(yes) or'n'(no).
Source
function bool_from_yn( $yn ) {
return ( 'y' === strtolower( $yn ) );
}
Changuelog
| Versionen | Description |
|---|---|
| 1.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.