Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




bool_from_yn [ WordPress Function ]

bool_from_yn ( $yn )
Parameters:
  • (string) $yn Character string containing either 'y' or 'n'
Returns:
  • (bool) True if yes, false on anything else
Defined at:

Soorgelijke functies: get_blog_id_from_url


Whether input is yes or no. Must be 'y' to be true.

Source


<?php
function bool_from_yn$yn ) {
    return ( 
strtolower$yn ) == 'y' );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics