Re: note 9005 added to Strings

From: Date: Wed, 11 Oct 2000 01:22:00 +0000
Subject: Re: note 9005 added to Strings
Groups: php.notes 
Request: Send a blank email to php-notes+get-6342@lists.php.net to get a copy of this message
Stripslashes() has been there for several years. Check you magic_quotes setting in your config file (php.ini), and see the manual for more info. Your note has been removed. --- jacob@v-wave.com wrote: > If you try to get text input from a form and then > output it to a file you get a bunch of escape > characters flying around. Here's some code which I > hope can effectively fix this: > function remSlash(&$targ, $source) > { > $i = 0; > $x = strlen($source); > while($i < $x) > { > if($source[$i] != "\\") > $targ .= $source[$i++]; > else if(($targ[$i] == "\\") && ($source[$i+1] == > "\\")){ > $targ .= "\\"; > $i+=2; > } > else > $i++; > } > } > > I hope such a function doesn't already exist :P > > http://www.php.net/manual/language.types.string.php > > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-notes-unsubscribe@lists.php.net > For additional commands, e-mail: > php-notes-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/

« previous php.notes (#6342) next »