There is a PCP script that accepts a post date. I check this date and I need to send "true" or "false". How can I do it?
2 answers
Something like this:
if ($allRight) { echo "true"; } else { echo "false"; }; Or so:
 return ($allRight) ? true : false; - @kirill see no reason to write a ternary operator where they do not know the basis of the language. Then it’s still necessary to give the castes as an example in order to completely confuse :-) - ReinRaus
|
 $allRight = 'text'; //$allRight = true; //$allRight = false; var_dump(var_export($allRight == true, true)); - Especially for ignoramus-minus updated post. - lampa
|
