Array - Match

From: Date: Sat, 07 Sep 2002 23:29:36 +0000
Subject: Array - Match
Groups: php.general 
Request: Send a blank email to php-general+get-115599@lists.php.net to get a copy of this message
I have $sub = "abc"; and $subs[0] = "cde"; $subs[0] = "iyu"; $subs[0] = "abc"; .. .. .. $subs[50] = "xyx"; How to find whether $sub matches with any one of $subs[$i] I have used a for loop but it is returning true when $subs[$i] = "xxxxxabc". /Chandu ----------------------------------------------- Powered by MihiraMail, Fast secure & reliable Brought to you by Mihira Net Pvt Ltd.

« previous php.general (#115599) next »