i want to disply an error when some varaiable have blank value or empty or null value (whatever we say), variable is shown below:
$mo=strtotime($_POST['MondayOpen']);
where var_dump($_POST['MondayOpen']) return string(0) "".
now i want to solve below
first of all i want to know $mo is which type of variable (string or integer or other type of variable)
which function is better to find that $mo have no value
i conduct a test with $mo and i got these results
is_int($mo);//--Return nothing
is_string($mo); //--Return bool(false)
var_dump($mo); //--Return bool(true)
var_dump(empty($mo));//--Return bool(true)
var_dump($mo==NULL);//--Return bool(true)
var_dump($mo=='');//--Return nothing