Verificare var_dump() True sau False
Scris: Dum Mai 15, 2016
Cum verific daca var_dump este true sau false ?
Cursuri online, tutoriale, jocuri si anime - gratuite
https://marplo.net/forum/
Cod: Selectaţi tot
$t = true;
$f = false;
//if $t is true output Ok, else, other mesaj
if($t) echo 'Ok, $t is true';
else echo '$t is false';
//if $f is false (with negation !) output Ok, else, other mesaj
if(!$f) echo 'Ok, $f is false';
else echo '$f is not false';
//if $t is true (with comparation '===') output Ok, else, other mesaj
if($t === true) echo 'Ok, $t is true';
else echo '$t is false';
Cod: Selectaţi tot
if(!checkDt2m($date))