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

Strip Slashes From User Input (if Applicable)

DZone's Guide to

Strip Slashes From User Input (if Applicable)

·
Free Resource
This code checks if magic quotes are enabled, and if so, strips slashes from GET, POST and COOKIE arrays. It's fully recursive, and thus supports POST arrays.


  
Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}