PHP Basics
| 31. | Which of the following is used to check if a variable is a string in PHP? |
|---|
A. is_string()
B. string()
C. isString()
D. none of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The is_string() function is used to check if a variable is a string in PHP.
| 32. | Which of the following is used to check if a variable is an integer in PHP? |
|---|
A. is_int()
B. integer()
C. isInteger()
D. none of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The is_int() function is used to check if a variable is an integer in PHP.
| 33. | Which of the following is used to check if a variable is a float in PHP? |
|---|
A. is_float()
B. float()
C. isFloat()
D. none of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The is_float() function is used to check if a variable is a float in PHP.
| 34. | Which of the following is used to check if a variable is a boolean in PHP? |
|---|
A. is_bool()
B. bool()
C. isBoolean()
D. none of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The is_bool() function is used to check if a variable is a boolean in PHP.
| 35. | Which of the following is used to check if a variable is an object in PHP? |
|---|
A. is_object()
B. object()
C. isObject()
D. none of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The is_object() function is used to check if a variable is an object in PHP.