PrepAway - Latest Free Exam Questions & Answers

which code sample correctly indicates how to decode the string to native PHP values?

Given a JSON-encoded string, which code sample correctly indicates how to decode the
string to native PHP values?

PrepAway - Latest Free Exam Questions & Answers

A.
$value = Json::fromJson($jsonValue);

B.
$value = json_decode($jsonValue);

C.
$json = new Json($jsonValue); $value = $json->decode();

D.
$value = Json::decode($jsonValue);


Leave a Reply

Your email address will not be published. Required fields are marked *