PHP: Difference between revisions
m clean up the table |
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight" |
||
| (One intermediate revision by the same user not shown) | |||
| Line 26: | Line 26: | ||
parameter, you can force the return value to an array. In the former case, you access the content using object notation. In the latter case, you use array notation. | parameter, you can force the return value to an array. In the former case, you access the content using object notation. In the latter case, you use array notation. | ||
ie. | ie. | ||
< | <syntaxhighlight lang="php"> | ||
$data = json_decode($data); | $data = json_decode($data); | ||
$version = $data->query->general->generator; | $version = $data->query->general->generator; | ||
| Line 33: | Line 33: | ||
$version = $data['query']['general']['generator']; | $version = $data['query']['general']['generator']; | ||
</ | </syntaxhighlight> | ||
==What's New== | ==What's New== | ||
The release notes at PHP Watch give better explanations and more context than the official release notes, but the official ones are obviously canonical and may provide a quicker view of the timeline or metadata. | The release notes at PHP Watch might give better explanations and more context than the official release notes, but the official ones are obviously canonical and may provide a quicker view of the timeline or metadata. | ||
=== Release Notes === | === Release Notes === | ||