Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

What a stupid mistake...

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ModestasV modestasv Joined 4 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.