Node is saved as draft in My Content >> Draft
-
How to get URL from any given text
If you having any sting or text containing the url of any websites
<?php
$text = "I have to extract the url http://abc.com from this line";
echo explode(' ',strstr($text,'http://'))[0];
Output :-
http://abc.com
Although there are so many other methods also but I found this one short and easy.
0 Comment(s)