RE: [PHP] how do you erase quotes from variable?

2001-01-26 Thread Dustin Butler
I have a variable(s) that hold the string: "name" and I'd like to kill the quotes so it contains: name I am aware of the strlen() function but can find the concant Little Help? Mike If you *know* the variable is quoted you could also do: $new = substr($variable, 1, -1); I

RE: [PHP] how do you erase quotes from variable?

2001-01-24 Thread Boget, Chris
I have a variable(s) that hold the string: "name" and I'd like to kill the quotes so it contains: name I am aware of the strlen() function but can find the concant $newVar = eregi_replace( "\"", "", $varWithAboveData ); Chris