Tell me how can we check the value of a given variable is alphanumeric?



Tell me how can we check the value of a given variable is alphanumeric?..

Answer / Kumar Saurabh Pratap

To check if a given variable is alphanumeric in PHP, use is_alphanum($variable).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is php7?

1 Answers  


How do functions work?

1 Answers  


What is singleton class in php?

1 Answers  


How do you run a php script from the command line?

1 Answers  


How is php different from other languages?

1 Answers  


What is the function used to change the root directory in PHP?

1 Answers  


I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?

1 Answers  


How can we get the properties (size, type, width, height) of an image using PHP image functions?

4 Answers   ConSim,


What is polymorphism?

1 Answers  


Explain how is it possible to set an infinite execution time for php script?

1 Answers  


How do I run a php script?

1 Answers  


What is filter_var?

1 Answers  


Categories