Page 1 of 1

Problem with str_replace

Posted: Tue Mar 16, 2010 11:27 am
by ChrisF79
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:

Code: Select all

$garage_spaces = str_replace(" ","hmm",$garage_spaces);
That still results in the   being there! Any help would be greatly appreciated!

Re: Problem with str_replace

Posted: Tue Mar 16, 2010 12:06 pm
by ChrisF79
Disregard this post... this isn't what was causing my problem afterall.

Re: Problem with str_replace

Posted: Tue Mar 16, 2010 12:53 pm
by AbraCadaver
ChrisF79 wrote:Disregard this post... this isn't what was causing my problem afterall.
These aren't the droids we're looking for???