note 51625 deleted from function.array-search by felipe

From: Date: Sun, 10 Feb 2008 13:09:56 +0000
Subject: note 51625 deleted from function.array-search by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-135955@lists.php.net to get a copy of this message
Note Submitter: vlad dot gladin at 102mg dot ro ---- I found this useful especially for parsing htmls from $file=file("http://a.website.com/htmlpage.html"); function array_search_extended($file,$str_search) { foreach($file as $line) { if (strpos($line, $str_search)!== FALSE) { return $line; } } return false; }

« previous php.notes (#135955) next »