This post is part of the PHP Snippets series where I will be covering the basics of developing in PHP.
One of the most basic statemnts you’ll use in PHP is the if
statement which is used for conditional statements which perform different actions.
The most basic form is the basic if
itself which executes when one condition is true:
$time = date( "H" );
if ( $time < 12 ){
echo "Good morning.";
Continue Reading azurecurve’s Article on their blog
PHP Snippets: If Statements
This post is part of the PHP Snippets series where I will be covering the basics of developing in PHP. One of the most basic statemnts you’ll use in PHP is the if statement which is used for conditional statements which perform different actions.
Blog Syndicated with azurecurve’s Permission
More About This Author
Array
- Dyn365GP23 April 2024In Microsoft Dynamics 365 Business Central (Administration), how do I… Delete a Company
- Dyn365GP22 April 2024Upcoming Microsoft Dynamics 365 Business Central Knowledge Hub Webinars (May-Jul 2024) from MADIC dynamics
- Dyn365GP22 April 2024In Microsoft Dynamics 365 Business Central (Administration), how do I… Rename an Environment
- Dyn365GP19 April 2024MADIC dynamics Knowledge Hub Webinars: Jet Reports & Business Central