Removing certain text with PHP?
Posted: Wed Aug 11, 2010 2:59 pm
Hi
I want this URL:
php.net/manual/en/function.explode.php
to become
php.net
using php ..
I tried with the explode fuction but couldnt get it to work ...
Anyone have any tips?
Thanks in advance
I want this URL:
php.net/manual/en/function.explode.php
to become
php.net
using php ..
I tried with the explode fuction but couldnt get it to work ...
Code: Select all
list ($finalurl, $blabla) = explode('/', $url);Thanks in advance