Deal of The Day! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Zend Discussions
Exam 200-710 Topic 2 Question 37 Discussion
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?
A
$string = json_encode($value);
B
$string = Json::encode($value);
C
$json = new Json($value); $string = $json->__toString();
D
$value = (object) $value; $string = $value->__toJson();
Show Suggested Answer
Hide Answer
Suggested Answer:
B
by
Tiera
at
Oct 14, 2022, 11:17 AM
Limited Time Offer
25%
Off
Get Premium 200-710 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
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
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Brice
10 hours agoDylan
9 days agoKattie
14 days agoChan
15 days agoTonette
17 days ago