php if and not code example Example: if not php $a = true; if(!$a) { echo "False"; // Will return this } else { echo "True"; }