I have a string value from database.
I need to check if this value is an integer or a string.
I have tried is_int and is_numeric, but both of them are not what I need.
is_int always return false if the value is type of String while is_numeric return true if my the value contain number.
What I am using is preg_match('/^\d+$/',$value), and, I am looking for a simple solution in this case.
ctyped_digit()