Sign in
Log inSign up

Are you PHP senior?

Ivijan (Stefan) Stipic's photo
Ivijan (Stefan) Stipic
·Aug 11, 2017

Check is string numeric

0%

Check is string integer

82%

Check is this string number

18%

11 votes · Closed

Let's test your knowledge. What this check checking? Please explain.

if(is_numeric($something) && (int)$something == $something){
    /* DO SOMETHING */
}