Can we use if condition for numeric and nonnumeric value in php and what is column type name
Answers
Answered by
0
This should be rewritten as, “ […] you only want a value to contain digits then you can use ctype_digit()”. That function will fail on 1.25or -11 which are “numbers”. If the OP wants to check if a value contains a number they should use is_numeric().
Similar questions
Math,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Chemistry,
1 year ago