note 116129 added to control-structures.alternative-syntax

From: Date: Wed, 12 Nov 2014 11:41:39 +0000
Subject: note 116129 added to control-structures.alternative-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-200875@lists.php.net to get a copy of this message
isset( $value ) AND print( $value ); Someone consider the codes above as an alternative syntax. However it's not. The reason for the two different variations of "and" and "or" operators is that they operate at different precedences. (See http://php.net/manual/en/language.operators.precedence.php) ---- Server IP: 72.52.91.14 Probable Submitter: 119.254.241.67 ---- Manual Page -- http://php.net/manual/en/control-structures.alternative-syntax.php Edit -- https://master.php.net/note/edit/116129 Del: integrated -- https://master.php.net/note/delete/116129/integrated Del: useless -- https://master.php.net/note/delete/116129/useless Del: bad code -- https://master.php.net/note/delete/116129/bad+code Del: spam -- https://master.php.net/note/delete/116129/spam Del: non-english -- https://master.php.net/note/delete/116129/non-english Del: in docs -- https://master.php.net/note/delete/116129/in+docs Del: other reasons-- https://master.php.net/note/delete/116129 Reject -- https://master.php.net/note/reject/116129 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200875) next »