Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now
$string = "This is the string texts from: http://test.com/test.php";
$strArray = explode(' ', $string);
foreach($strArray as $word)
if (substr($word, 0, 7) == "http://" || substr($word, 0, 8) == "https://")
$url = $word;
echo "Your URL: $url<br />";
Open in new window
Get your personalized solution.
Please provide your email to receive a free trial preview!
*This site is protected by reCAPTCHA and the Google
Terms of Service apply.
Please enter a first name
Please enter a last name
8+ characters (letters, numbers, and a symbol)
Take hold of your future.