note 108902 deleted from language.expressions by googleguy

From: Date: Wed, 10 Oct 2012 20:34:00 +0000
Subject: note 108902 deleted from language.expressions by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191240@lists.php.net to get a copy of this message
Note Submitter: phvandeberghe at hotmail dot com ---- About the multiply (star) character: Note that if you try to use the '*' in a comparaison you will have many results... <?php $a = '*'; switch($a) { case 1: echo ' (int)one'; case 0: echo ' (int)zero'; case '0': echo ' (string)zero'; case '*': echo ' (string)star'; case true: echo ' (bool)true'; case false: echo ' (bool)false'; } // ouput // (int)zero (string)zero (string)star (bool)true (bool)false ?>

« previous php.notes (#191240) next »