|
I'm looking for a way to work out the number of urls within a PHP string for example
PHP Code:
Please find my website at <a href="mydomain1.com">My Domain</a> and <a href="mydomain2.com">My Domain 2</a>
Would return that there was two urls included within the php string, I've thought of using substr_count but I cant see anyway of making that work.
Can anyone offer any help
Thanks
|