title: Split a number by decimal point in php
body: <p>How do I split a number by the decimal point in php?</p>
  
  <p>I've got $num = 15/4; which turns $num into 3.75. I would like to split out the 3 and the 75 parts, so $int = 3 and $dec = 75. My non-working code is:</p>
  
  <pre><code>$num = 15/4; // or $num = 3.75;
  list($int, $dec) = split('.', $num);
  </code></pre>
  
  <p>but that results in empty $int and $dec.</p>
  
  <p>Thanks in advance.</p>