title: php string => float casting not working
body: <p>I have 2 numbers in strings</p>
  
  <pre><code>$xml = "13.52";
  $value = "2";
  </code></pre>
  
  <p>and i want to multiply them.</p>
  
  <p>i have tried:</p>
  
  <pre><code>$subtotal = $xml * $value;
  </code></pre>
  
  <p>Based on the manual, this should work. I've already tried</p>
  
  <pre><code>$subtotal = (float)$xml * (float)$value;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$xml = floatval($xml);
  $value = floatval($value);
  $subtotal = $xml * $value;
  </code></pre>
  
  <p>I have no idea what i have broken. There is no other help in the manual.</p>
  
  <p>EDIT: looking at the html-source for the variables, it seems there was part of the xml () attached to the variable. Thanks for the help clearing my mind.</p>