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 Quote Link to comment Share on other sites More sharing options...
Exabyte Posted August 11, 2010 Share Posted August 11, 2010 $a = explode('/',$url); echo $a[0]; Quote Link to comment Share on other sites More sharing options...
DavidAM Posted August 11, 2010 Share Posted August 11, 2010 also, look at the parse_url() function Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.