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:

Benzer Fonksiyonlar: 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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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