⊗ppPmCdShS 91 of 447 menu

The Optional Else Command in PHP

The else construct is not mandatory. In the following example, the text will be displayed only if the variable value is equal to 1. Otherwise, nothing will happen:

<?php $test = 1; if ($test == 1) { echo '+++'; } ?>

If the variable $test is equal to 10, then '+++' should be displayed on the screen. Otherwise, nothing should happen.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline