note 9445 added to strlen

From: Date: Fri, 03 Nov 2000 16:09:44 +0000
Subject: note 9445 added to strlen
Groups: php.notes 
Request: Send a blank email to php-notes+get-7343@lists.php.net to get a copy of this message
Previous poster wrote: "what you describe is not a bug; it's common behaviour in any programming language. " You are totally wrong here. Assignments are used as part of expressional conditions all the time in C and C++ ( just look at the K&R book if you don't believe me.) You just need to understand the order of precedence in the expression. Why this doesn't work in PHP is a quirk or 'feature' of the PHP interpreter. Brian http://www.php.net/manual/function.strlen.php

« previous php.notes (#7343) next »