Example parse, output is different

From: Date: Wed, 20 Jul 2016 15:58:34 +0000
Subject: Example parse, output is different
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969386201@lists.php.net to get a copy of this message
Hi there, I'm not sure if this is the right place to report this.. I was reading at http://php.net/manual/en/language.variables.basics.php On Example #1 // Boolean usage; outputs 'false' (See ternary operators for more on this syntax) echo($unset_bool ? "true\n" : "false\n"); However, when I run this on my PHPStorm IDE, my output is different and does not return false as the comments suggested and instead returns Undefined variable. This is the output from my parser: PHP Notice: Undefined variable: unset_bool in /Library/WebServer/Documents/index.php on line 30 Notice: Undefined variable: unset_bool in /Library/WebServer/Documents/index.php on line 30 I would appreciate if you could please let me know if this is correct or if I need to change something in my IDE. By the way, I am using php 7.0.4 and it is located with at my homebrew cellar and path is: /usr/local/Cellar/php70/7.0.4/bin/php Best Regards, Michel

« previous php.doc (#969386201) next »