note 84320 rejected from language.types.string by danbrown

From: Date: Wed, 09 Jul 2008 13:42:54 +0000
Subject: note 84320 rejected from language.types.string by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141302@lists.php.net to get a copy of this message
Note Submitter: nullhility at gmail dot com ---- "String conversion is automatically done in the scope of an expression where a string is needed. This happens when using the echo() or print() functions, or when a variable is compared to a string." ord(), var_dump() and strlen() do not type cast to (string). I get your point, but the "strange behavior" is not strange at all, it's how PHP handles the string type in *context*.

« previous php.notes (#141302) next »