$bal = (int)$balance;
echo is_int($bal);
$balance is from a file_get_contents($webservice);
I am using (int) to convert a string to integer. is_int returns 1 for true as verification.
Because the value of $bal is always negative, I do the following calculation to make it a positive:
$bal = $bal * -1;
When I do this, the value becomes 0 even though $bal may be -150 previously.
EDIT 1 var_dump ($balance) is returning: string(110) " -399.6000"
EDIT 2 I have used XML Parser to assign variable to array - see my answer below.