How can I get all url from string and put them in array ?
For Exam :
$s="click here http://domain.com or here http://anydo.net";
I want to put all url in array
$Url[0]="http://domain.com";
$Url[1]="http://anydo.net";
Printable View
How can I get all url from string and put them in array ?
For Exam :
$s="click here http://domain.com or here http://anydo.net";
I want to put all url in array
$Url[0]="http://domain.com";
$Url[1]="http://anydo.net";
Exam? No.
prokhaled, don't you remember anything we have told you here!! I can name at least 5 threads where we did this with regular expressions. hmmm, that goes into an array.