Assuming that you’ve chosen to decode the JSON as a multi-dimensional array, rather than as objects:
foreach ($results as $tweet) {
$user = $tweet["from-user"];
$text = $tweet["text"];
$entities = $tweet["enities"];
$urls = $entities["urls"];
foreach ($urls as $url) {
echo $url["expanded_url"];
}
}
et cetera
Related Contents:
- json_decode to array
- Preferred method to store PHP arrays (json_encode vs serialize)
- How to convert JSON string to array
- PHP Array to JSON Array using json_encode(); [duplicate]
- Parsing JSON with PHP
- Use json_decode() to create array insead of an object
- How do I `json_encode()` keys from PHP array?
- Simplest PHP example for retrieving user_timeline with Twitter API version 1.1
- PHP syntax for dereferencing function result
- Using $_POST to get select option value from HTML
- PHP Multiple Checkbox Array
- How to use cURL to get jSON data and decode the data?
- Convert backslash-delimited string into an associative array
- Cannot use object of type stdClass as array?
- json_encode PHP array as JSON array not JSON object
- How to create a HTML Table from a PHP array?
- Returning JSON from PHP to JavaScript?
- Generate json string from multidimensional array data [duplicate]
- PHP MySQL Google Chart JSON – Complete Example [closed]
- How do you remove an array element in a foreach loop?
- php: loop through json array
- PHP: Access Array Value on the Fly
- How to reindex an array?
- Why is json_encode adding backslashes?
- Save PHP array to MySQL?
- How to insert an item at the beginning of an array in PHP?
- Group array by subarray values
- Any way to return PHP `json_encode` with encode UTF-8 and not Unicode? [duplicate]
- array_splice() for associative arrays
- PHP Array Merge two Arrays on same key
- php: check if an array has duplicates
- Replace keys in an array based on another lookup/mapping array
- Append data to a .JSON file with PHP
- Explode a string to associative array without using loops? [duplicate]
- Posting multidimensional array with PHP and CURL
- How to sort an array of UTF-8 strings?
- Convert an associative array to a simple array of its values in php
- How to solve JSON_ERROR_UTF8 error in php json_decode?
- Parse error: Invalid numeric literal
- How to delete object from array inside foreach loop?
- Keep array rows where a column value is found in a second flat array
- How to sort date array in php?
- Is PHP’s count() function O(1) or O(n) for arrays?
- Group rows in a 2d array and count number of rows in each respective group
- Parsing JSON array with PHP foreach
- How to get all combinations from multiple arrays?
- pass arraylist bean from android to webservice php
- Adding subscribers to a list using Mailchimp’s API v3
- How can I parse JSON into a html table using PHP?
- PHP- Decode JSON