note 39661 deleted from function.strval by nlopess
| From: | nlopess@php.net | Date: | Fri, 06 Feb 2004 14:42:39 +0000 |
| Subject: | note 39661 deleted from function.strval by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64728@lists.php.net to get a copy of this message | ||
Note Submitter: aztum@yahoo.es
----
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.