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:

Natalie
3 days ago
Creating a new Json object and then converting it to a string? That seems overly complicated. I'll stick with the simple json_encode() method.
upvoted 0 times
...
Brice
9 days 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
18 days ago
The correct answer is A. json_encode() is the standard PHP function to convert a value to JSON.
upvoted 0 times
...
Kattie
23 days ago
I'm not sure, but I think B) $string = Json::encode($value); could also be a valid option.
upvoted 0 times
...
Chan
24 days ago
I agree with Tonette, json_encode is the right function to convert PHP value to JSON.
upvoted 0 times
...
Tonette
25 days ago
I think the correct answer is A) $string = json_encode($value);
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77