+1 vote
in PHP by
Which of the following function in PHP can be used to test the type of any variable?

a) showtype()

b) gettype()

c) settype()

d) None of the above

1 Answer

0 votes
by

b) gettype()

Description: The gettype() function is an inbuilt function in PHP, and as its name implies, it returns the type of a variable. The gettype() function in PHP is used to check the type of existing variable.

Related questions

+1 vote
asked Jun 5, 2020 in PHP by Robindeniel
+1 vote
asked May 11, 2022 in PHP by sharadyadav1986
...