Over a million developers have joined DZone.

Strip A String Using Explode

DZone's Guide to

Strip A String Using Explode

· ·
Free Resource

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 ?.";

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}