New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why only red is output #100
Comments
|
$fruits = Items::fromString('{"results":[{"name":"apple","color":"red"},{"name":"pear","color":"yellow"}]}', ['pointer' => '/results/-/color']);
|
Thanks, I'll try to get to it ASAP. |
Good job with hitting the #💯btw 😂👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
//fruitsArray.json
{
"results": [
{
"name": "apple",
"color": "red"
},
{
"name": "pear",
"color": "yellow"
}
]
}
//code
$fruits = Items::fromFile('fruitsArray.json', ['pointer' => '/results/-/color']);
foreach ($fruits as $key => $value) {
var_dump($value);
}
The text was updated successfully, but these errors were encountered: