note 1719 deleted from function.file by jimw

From: Date: Sat, 08 Dec 2001 22:03:42 +0000
Subject: note 1719 deleted from function.file by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22262@lists.php.net to get a copy of this message
Store the contents of the file in a variable called $contents. Then use this line to pull out all of the links, but make sure to remove the href= out of each link in the array. $tmp preg_match_all("|href=([$/\'\"a-zA-Z0-9][^\s>\'\"]+)|i",$contents,$linksarray); NOTE: $linksarray[0][0] is the first link returned and $linksarray[0][1] is the next, so on and so forth.

« previous php.notes (#22262) next »