$i_toate=str_replace(' ','',$i_toate); $i_toate=str_replace(',','',$i_toate); $i_toate=str_replace('.','',$i_toate); and then to $i_toate=$i_toate+1-1; But is not working! is giving me back a zero value! try this out! $i_toate="62,500,102"; $i_toate=str_replace(' ','',$i_toate); $i_toate=str_replace(',','',$i_toate); $i_toate=str_replace('.','',$i_toate); $i_toate=$i_toate+1-1; echo "$i_toate"; why?!
Yup sorry i was also grablidng those data with some nasty HTML codes, like <b></b> because of that it didn't worked! thanks anyway ! i love you all !