Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 9 Question 65 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 65
Topic #: 9
[All 200-710 Questions]

What is the output of the following code?

$f = function () { return "hello"; };

echo gettype($f);

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Celestina
2 months ago
I wonder if there's a secret 'E) Spaghetti' option hidden in the code somewhere...
upvoted 0 times
...
Laurena
2 months ago
Well, if I don't know the answer, I'll just take a wild guess and choose 'hello'. What could go wrong?
upvoted 0 times
...
Zoila
2 months ago
D. function - that's an easy one, I can't believe anyone would choose anything else!
upvoted 0 times
Alpha
25 days ago
D) function - that's an easy one, I can't believe anyone would choose anything else!
upvoted 0 times
...
Elizabeth
26 days ago
C) object
upvoted 0 times
...
Rolland
30 days ago
B) string
upvoted 0 times
...
Diego
2 months ago
A) hello
upvoted 0 times
...
...
Nada
2 months ago
Hmm, I'd guess 'object' since functions are considered objects in PHP.
upvoted 0 times
Nicolette
1 months ago
Correct, it's B) string
upvoted 0 times
...
Leatha
2 months ago
I think it's D) function
upvoted 0 times
...
Noel
2 months ago
B) string
upvoted 0 times
...
...
Lashawna
2 months ago
The output should be 'function' since the variable $f is assigned a function.
upvoted 0 times
Inocencia
1 months ago
Oh, I see. Thanks for clarifying!
upvoted 0 times
...
Kenneth
1 months ago
No, the output is 'object' because the variable $f is assigned a function.
upvoted 0 times
...
Elfriede
2 months ago
B) string
upvoted 0 times
...
...
Lili
3 months ago
D) function
upvoted 0 times
...
Jeff
3 months ago
I think the output is B) string because the function returns a string value.
upvoted 0 times
...
Chantell
3 months ago
B) string
upvoted 0 times
...
Gilbert
3 months ago
D) function
upvoted 0 times
...
Sharika
3 months ago
I think it's B) string because the function returns a string.
upvoted 0 times
...
Shenika
4 months ago
B) string
upvoted 0 times
...

Save Cancel