Skip to content

Instantly share code, notes, and snippets.

@guidokritz
Forked from dechadou/gist:659548923fb8ccdf1939
Last active August 29, 2015 14:16
Show Gist options
  • Save guidokritz/f08d4bae3d4bffa0e222 to your computer and use it in GitHub Desktop.
Save guidokritz/f08d4bae3d4bffa0e222 to your computer and use it in GitHub Desktop.
foreach($states as $_state){
$rv['stateid-'.$_state->getId()] = $_state->getName();
foreach($_state->getAreas() as $_area){
$rv['areaid-'.$_area->getId()] = '-- ' . $_area->getName();
foreach ($_area->getCinemas() as $_cinema) {
$rv['cinemaid-'.$_cinema->getId()] = '---- ' . $_cinema->getName();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment