original string maybe like this 2.87 I need >a variable with 2 and an other with 87.
$vals = explode(".",$string);
$vals[0] will contain the integer
$vals[1] will contain the rest.
As simple as that.
I'm sure there is a 'nicer' way to do it. But this one works fine..
DaGeek 🙂