bool_from_yn


bool_from_yn ( $yn )

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

Description

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

Related Functions

get_blog_id_from_url

Top Google Results

User discussions

wpseek mobile