title: PHP | Make a validation check whether the number has a decimal point == x.00 or not
body: <p>Em, I don't know how to explain this. I hope you'll get the point.</p>
  <p>I've variables:</p>
  <pre class="lang-php prettyprint-override"><code>$a = 10; //int
  $b = 2.5; //float
  $c = $a * $b; //I know this return will be float: 25
  </code></pre>
  <p>From those variables, I want to make a statement as follows:</p>
  <pre class="lang-php prettyprint-override"><code>if (//the value of $c have a decimal point == x.00) {
      echo $c;
  } else {
      echo '';
  }
  </code></pre>
  <p>Did you get it? What I want is that when the decimal point of <code>$c</code> is x.00 (like 25.00, 10.00, etc), the <code>$c</code> will be printed. But if the decimal point is <strong>NOT</strong> x.00 (eg 25.50, 25.7, etc) then <code>$c</code> will <strong>NOT</strong> be printed.</p>
  <p>I've read some references but still don't understand how to do it.</p>
  <p>Thank you. I hope you understand what I mean.</p>