HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP Keywords : Print a string if $a is less than five
The if
keyword is used to create an if conditional. The elseif
and else
keywords can
be used to specify code that runs when the condition is not met.
The elseif
keyword
The else
keyword
Read more about conditionals in our PHP Conditionals Tutorial.
❮ PHP Keywords