PDA

View Full Version : How to Find that?


mokujin
05-17-2009, 08:01 PM
hello,
I dont know what function in php can do that. So I need your help.

I have a link (ex. https://vborg.vbsupport.ru/index.php )
How can I find https://vborg.vbsupport.ru/ for $x and index.php for $y?
I know function substr(strrchr($text, '/'), 1); can find the last part in a string. (index.php)

Thank you

Dismounted
05-18-2009, 06:56 AM
<a href="http://www.php.net/manual/en/function.parse-url.php" target="_blank">parse_url()</a>