Using the negation operator : Arithmetic Operators « Operator « PHP
- PHP
- Operator
- Arithmetic Operators
Using the negation operator
<?
$finished = false;
if ($finished == false) {
print 'Not done yet!';
}
if (! $finished) {
print 'Not done yet!';
}
?>
Related examples in the same category