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 2 Question 37 Discussion

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

Given a PHP value, which sample shows how to convert the value to JSON?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Brice
10 hours ago
Option B looks like it might be a custom function, but I'm not familiar with it. I'll go with the built-in json_encode() function.
upvoted 0 times
...
Dylan
9 days ago
The correct answer is A. json_encode() is the standard PHP function to convert a value to JSON.
upvoted 0 times
...
Kattie
14 days ago
I'm not sure, but I think B) $string = Json::encode($value); could also be a valid option.
upvoted 0 times
...
Chan
15 days ago
I agree with Tonette, json_encode is the right function to convert PHP value to JSON.
upvoted 0 times
...
Tonette
17 days ago
I think the correct answer is A) $string = json_encode($value);
upvoted 0 times
...

Save Cancel