You should be using is_numeric instead of is_integer
is_integer(1) //true
is_integer('1') //false
is_numeric(1) //true
is_numeric('1') //true
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community