The if construct allows for conditional execution of code fragments.
if ($a > $b) {
echo "a is bigger than b";
}
PHP Manual - Control Structures - If
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents