title: How to validate to accept only float values in php
body: <p>I am looking to validate a field using php. The value to be entered in that field should be a float value. None other can be accepted. Not even integer. It should accept values like 5.2 or 4.1 and so on. Integers like 3 or 56 or 123 etc will also not be accepted. Hope it is clear.</p>
  
  <p>Thanks in advance</p>