note 39661 added to function.strval

From: Date: Fri, 06 Feb 2004 14:00:07 +0000
Subject: note 39661 added to function.strval
Groups: php.notes 
Request: Send a blank email to php-notes+get-64727@lists.php.net to get a copy of this message
look at this: foreach ($fila as $id => $valor) { if ($id == 'comentari') print "$id.HELLO"; else print "$id.BYE"; } generates: 0.HELLO id.BYE data.BYE codi_upf.BYE aula.BYE pc.BYE comentari.HELLO 0.HELLO id.BYE data.BYE codi_upf.BYE aula.BYE pc.BYE comentari.HELLO changing to if(strval($id) == 'comentari') it works. ---- Manual Page -- http://www.php.net/manual/en/function.strval.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39661 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39661&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39661&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64727) next »