menu

PHP Basics

PHP Basics - Important Points


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

Discuss Work Space

Answer: 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

Discuss Work Space

Answer: 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

Discuss Work Space

Answer: 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

Discuss Work Space

Answer: 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

Discuss Work Space

Answer: option a

Explanation:

The is_object() function is used to check if a variable is an object in PHP.


Subscribe for Latest Career Trends
Subscribe Now
Use AI and ChatGPT for Career Guidance

Unlock Your Future

Join Now
Worried for Placements in 2024?

Join FAST TRACK Course

Join Now
Supercharge Your SUCCESS

Join All in One Placement Mock Tests-2024

Join Now