src/Core.php
/**
     * Generates a string of yes or no based on the input variable.
     * Note that this will consider string 0 or a 0 integer as 'false' values.
     * @param input - the input variable to decide whether to output yes/no on.
     * @return result - string of 'Yes' or 'No'
     */
Generates a string of yes or no based on the input variable.
Note that this will consider string 0 or a 0 integer as 'false' values.
@param input - the input variable to decide whether to output yes/no on.
@return result - string of 'Yes' or 'No'
Generates a string of yes or no based on the input variable . Note that this will consider string 0 or a 0 integer as ' false ' values . @param input - the input variable to decide whether to output yes / no on . @return result - string of ' Yes ' or ' No '
public static function generateYesNoString($input)
    {
        $result = 'Yes';
        if ($input == "0" || $input == 0 || $input == false)
        {
            $result = 'No';
        }
        return $result;
    }
public static function generateYesNoString ( $ input ) { $ result = 'Yes' ; if ( $ input == " 0 " || $ input == 0 || $ input == false ) { $ result = 'No' ; } return $ result ; }
Generates a string of yes or no based on the input variable.
Generates a string of yes or no based on the input variable .