Page 1 of 1
triming quates from the string? how
Posted: Thu Aug 31, 2006 7:16 pm
by alexus
hey
I tried all posible ways to trim quotation marls from the string (" and ') but it didnt workout!
Can someone help me?
Posted: Thu Aug 31, 2006 7:17 pm
by RobertGonzalez
Posted: Thu Aug 31, 2006 7:19 pm
by Rooster242
how bout:
$test = str_replace( '\"', '', $test );
Posted: Thu Aug 31, 2006 7:21 pm
by alexus
$test = str_replace( '\"', '', $test );
Doesnt work

Posted: Thu Aug 31, 2006 7:33 pm
by alexus
aaaaaa.... help my brain is blowing .... can read more manual nothing is working
'-(
Posted: Thu Aug 31, 2006 7:35 pm
by Benjamin
Code: Select all
$test = str_replace( '"', '', $test );
Posted: Thu Aug 31, 2006 7:37 pm
by alexus
lol that was so simple

I didnt try that one for str_replace and it works yay THANKS a lot!

Posted: Thu Aug 31, 2006 11:16 pm
by RobertGonzalez
If you read the manual on
str_replace() (as I mentioned in my initial response to your original post) you would have seen the examples used match what astions showed. Did you read the manual?
Posted: Thu Aug 31, 2006 11:19 pm
by alexus
yep I did the used chr(022) as the charakter in the charakter array