$str = '"hi"'; $newstr = preg_replace("/\"/", "", $str);
On Wed, 19 Mar 2003, Foong wrote: > try > > $with_quote = '"0"'; > $without_quote = str_replace('"', '', $with_quote); > > Foong > > > "Jeremy" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Hey folks, > Im apologize that this is just a really easy general php question but any > help would be appreciated. > > if i have a variable that is = to something like "0" or "1" > > but I just need it to be 0 or 1. how do i strip the " off. > > thanks, > Jeremy > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > --------------------------------------------------------------------------- Peter Beckman Internet Guy [EMAIL PROTECTED] http://www.purplecow.com/ --------------------------------------------------------------------------- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php