Given a JSON-encoded string, 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?
A . $json = new Json($jsonValue); $value= $json->decode();
B . $value= Json::decode($jsonValue);
C . $value = json_decode($jsonValue);
D . $value= Json::fromJson($jsonValue);

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments