Sopa xml string to float

Now im getting soap xml response as string…It is not possible to convert float…while converting it to float result getting zero…Help

Can you post some code that reproduces what you’re experiencing?

//Current Conversion rate
$client = new SoapClient($wsdl,array(‘trace’ => 1));
$country = array( “FromCurrency” => $fromCurrency,
“ToCurrency” => $toCurrency);


$result = $client->ConversionRate($country);
echo "Currency Conversion rate : ".$conversionRate=$client->__getLastResponse();
echo $finalResult=$tamt*$conversionRate; // But result is zero


Why it returns zero???

$finalResult is not set, [fphp]var_dump/fphp $result, which is the response from the API.