note 82121 added to function.stripslashes

From: Date: Fri, 28 Mar 2008 06:03:21 +0000
Subject: note 82121 added to function.stripslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-137657@lists.php.net to get a copy of this message
Here is simple example code which you can use as a common function in your functions file: <?php function stripslashes_if_gpc_magic_quotes( $string ) { if(get_magic_quotes_gpc()) { return stripslashes($string); } else { return $string; } } ?> ---- Server IP: 59.162.86.33 Probable Submitter: 122.169.40.153 ---- Manual Page -- http://www.php.net/manual/en/function.stripslashes.php Edit -- https://master.php.net/note/edit/82121 Del: integrated -- https://master.php.net/note/delete/82121/integrated Del: useless -- https://master.php.net/note/delete/82121/useless Del: bad code -- https://master.php.net/note/delete/82121/bad+code Del: spam -- https://master.php.net/note/delete/82121/spam Del: non-english -- https://master.php.net/note/delete/82121/non-english Del: in docs -- https://master.php.net/note/delete/82121/in+docs Del: other reasons-- https://master.php.net/note/delete/82121 Reject -- https://master.php.net/note/reject/82121 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137657) next »