Re: what happened to that new isset() like language
| From: | Marc Richards | Date: | Thu, 08 Jul 2004 23:10:19 +0000 |
| Subject: | Re: what happened to that new isset() like language | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10998@lists.php.net to get a copy of this message | ||
Olivier Hill wrote:
Marc Richards wrote:What? Why? There is obviously a way around it, because that is what people are using now. $a = $b ? $b : $c; MarcThat is true for other things as well: $a = $b += $c += $d; $a = $b + $c = $d;Well.. yes and no... If you are afraid of making mistake, you can force yourself to never use += -= *= operators, because you can simply write $a = $a + $b But if PHP introduces the ?: operator, you have to use it and there is no other way around.