dominod Posted August 11, 2010 Share Posted August 11, 2010 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 ... list ($finalurl, $blabla) = explode('/', $url); Anyone have any tips? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/210481-removing-certain-text-with-php/ Share on other sites More sharing options...
Exabyte Posted August 11, 2010 Share Posted August 11, 2010 $a = explode('/',$url); echo $a[0]; Link to comment https://forums.phpfreaks.com/topic/210481-removing-certain-text-with-php/#findComment-1098253 Share on other sites More sharing options...
DavidAM Posted August 11, 2010 Share Posted August 11, 2010 also, look at the parse_url() function Link to comment https://forums.phpfreaks.com/topic/210481-removing-certain-text-with-php/#findComment-1098280 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.