simple as 1 == true and 0 == false
if($validation === 1){
$validation = 'valid';
} else {
$validation = 'invalid';
}
have a reading of the php docs on boolean
1
solved Turn 1/0 to valid/invalid
simple as 1 == true and 0 == false
if($validation === 1){
$validation = 'valid';
} else {
$validation = 'invalid';
}
have a reading of the php docs on boolean
1
solved Turn 1/0 to valid/invalid