Tag: intval

  • PHP caveats – int/float type conversion

    The following code checks various scenarios in which inbuilt functions like intval, floatval, is_numeric, is_float and filter_var would result for several different types of values. Feel free to run in your local, leave comments if I can make the results more interesting with some more functions. https://gist.github.com/harshvardhanmalpani/8dd0222e4821d0e495532abe9007fef1 Output / Results