Hi everyone! I'm the author of code.mu :)
I'd love to chat with my non-Russian audience. I'm looking for your feedback on the site and the translation quality. Let's chat:)
57 of 110 menu

PHP if else Multiple Conditions

Multiple if else conditions in PHP are implemented using the elseif construct:

<?php $a = 3; if ($a == 0) { echo 'Equals zero!' } elseif ($a > 0) { echo 'Greater than zero!' } else { echo 'Less than zero!' } ?>
English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline