PHP Basics
36. | Which of the following is used to check if a variable is a resource in PHP? |
---|
A. is_resource()
B. resource()
C. isResource()
D. none of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The is_resource() function is used to check if a variable is a resource in PHP.
37. | Which of the following is used to get the length of a string in PHP? |
---|
A. strlen()
B. strlength()
C. length()
D. none of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The strlen() function is used to get the length of a string in PHP.
38. | Which of the following is used to replace a part of a string with another string in PHP? |
---|
A. str_replace()
B. str_swap()
C. replace_str()
D. none of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The str_replace() function is used to replace a part of a string with another string in PHP.