Negation operator : Logical Operators « Operator « PHP
- PHP
- Operator
- Logical Operators
Negation operator
$first_name = 'first';
$last_name = 'last';
<?
if (! strcasecmp($first_name,$last_name)) {
print '$first_name and $last_name are equal.';
}
?>
Related examples in the same category