note 19073 deleted from function.in-array by nlopess

From: Date: Thu, 24 Jun 2004 16:20:24 +0000
Subject: note 19073 deleted from function.in-array by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71606@lists.php.net to get a copy of this message
Note Submitter: jonas@delfs.dk ---- Have in mind that a string ends up in a(int)0 if you try to typecast it to an integer. This means that this line prints "In array": print in_array(0, array('first', 'second')) ? "In array" : "Not in array";

« previous php.notes (#71606) next »