nerdexam
Zend

200-550 · Question #217

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

Sign in or unlock 200-550 to reveal the answer and full explanation for question #217. The question stem and answer options stay visible for context.

Question

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

Options

  • A$json = new Json($jsonValue); $value = $json->decode();
  • B$value = Json::decode($jsonValue);
  • C$value = json_decode($jsonValue);
  • D$value = Json::fromJson($jsonValue);

Unlock 200-550 to see the answer

You've previewed enough free 200-550 questions. Unlock 200-550 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 200-550 Practice