Problem with str_replace
Posted: Tue Mar 16, 2010 11:27 am
This is driving me absolutely nuts! I have a variable named $garage_spaces with a value of "3 - Attached" and I just want to get the out of there so I can store it in MySQL. I tried:
That still results in the being there! Any help would be greatly appreciated!
Code: Select all
$garage_spaces = str_replace(" ","hmm",$garage_spaces);