[PHP-NOTES] note 130690 added to control-structures.elseif

[email protected] ("[email protected]") Sat, 28 Mar 2026 11:08:29 +0000
Newsgroups php.notes
Message-ID <[email protected]>
For simple if-else-structures, you can also use the ternary-operator.

https://www.php.net/manual/en/language.operators.comparison.php#language.operators.comparison.ternary
----
Server IP: 206.189.2.9
Probable Submitter: 37.251.227.141
----
Manual Page -- https://php.net/manual/en/control-structures.elseif.php
Edit        -- https://main.php.net/note/edit/130690
Del: integrated  -- https://main.php.net/note/delete/130690/integrated
Del: useless     -- https://main.php.net/note/delete/130690/useless
Del: bad code    -- https://main.php.net/note/delete/130690/bad+code
Del: spam        -- https://main.php.net/note/delete/130690/spam
Del: non-english -- https://main.php.net/note/delete/130690/non-english
Del: in docs     -- https://main.php.net/note/delete/130690/in+docs
Del: other reasons-- https://main.php.net/note/delete/130690
Reject      -- https://main.php.net/note/reject/130690
Search      -- https://main.php.net/manage/user-notes.php