Skip to content

Instantly share code, notes, and snippets.

@jzmwebdevelopment
Created November 19, 2012 02:54
Show Gist options
  • Save jzmwebdevelopment/4108715 to your computer and use it in GitHub Desktop.
Save jzmwebdevelopment/4108715 to your computer and use it in GitHub Desktop.
Ramblings on
public function test()
{
$getCategory = $this->getTMCatInfomation();
$getListCategory = $this->getTMMemberListings();
$listingCat = array();
foreach ($getListCategory as $main)
{
$listingCat[] = array('listingCategory' => $main['listingCategory'],
'listingId' => $main['listingId'],
'listingTitle' => $main['listingTitle']
);
}
$catCat = array();
foreach($getCategory as $main)
{
$catCat[] = array('parentNumber' => $main['parentNumber'],
'parentName' => $main['parentName'],
'subName' => $main['subName']
);
}
foreach ($listingCat['listingId'] as $id)
{
$listingInformation = array();
if($id === $catCat['parentNumber'])
{
$listingInformation = array('loads all relevant information');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment