RE: [SOAP] Anything wrong with "in_array"

From: Date: Mon, 21 Jul 2003 14:31:54 +0000
Subject: RE: [SOAP] Anything wrong with "in_array"
Groups: php.soap 
Request: Send a blank email to php-soap+get-864@lists.php.net to get a copy of this message
It looks working. However, if i want to add sth into array, and it's not array at that time, how could i add it? E.g.: $myArray; if(is_array($myArray)) //add item; cheers! Yang >===== Original Message From "Alok K. Dhir" <adhir@symplicity.com> ===== >You try something like: > >if (is_array($returnedArray) && !in_array($data,$returnedArray)) > >Al >

« previous php.soap (#864) next »