Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Strip A String Using Explode

DZone's Guide to

Strip A String Using Explode

·
Free Resource
http://www.php.net/manual/en/function.explode.php

In this example, I need to strip the page's current URL to take off anything that follows a ? in that URL.



  "; 
echo "$fs_refer[1] is the bit that used to follow the ?.";
 ?>
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}