I am outputting some info from SQL.. it works great, but on the php side I don't want it listing numbers which are = 0
$myrow[3] = str_replace(".50",".5",str_replace(".00","",str_replace("0.00","",$myrow[3])));
I am using the above to get rid of pointless numbers that show up on the table, like I don't want 10.00, or 12.50 showing up, I want 12.5, and 10 showing up, and if a tables value is 0, just replace with nothing. The problem I'm having is that its take 0.00 literally, and replacing the 10.00's with 1, all the other numbers that are like this (20.00, 100.00 etc.. ) also are effected..otherwise this does exactly what I need it too.
So I do save my 10's? 😉
TIA!
-Phil