Skip to content

Instantly share code, notes, and snippets.

@adam8810
Created September 7, 2012 18:15
Show Gist options
  • Save adam8810/3668307 to your computer and use it in GitHub Desktop.
Save adam8810/3668307 to your computer and use it in GitHub Desktop.
Array Digging
This is the array that I'd be digging into.
array(
"results" => array(
"list" => array(
"content" => "content stuff"
)
)
)
This is my code and I think it's really ugly in it's current state. I'm trying to get the info in "content":
$movies = $movie->searchMovie($query);
$movies = $movies['results'];
$movies = $movies['list'];
$movies = $movies['"content"];
echo $movies;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment