Skip to content

Instantly share code, notes, and snippets.

@jzmwebdevelopment
Created November 23, 2012 22:06
Show Gist options
  • Save jzmwebdevelopment/4137503 to your computer and use it in GitHub Desktop.
Save jzmwebdevelopment/4137503 to your computer and use it in GitHub Desktop.
url function
public function test()
{
$detailsFunction = $this->createCategoryDetails();
$ld = array();
$details = array();
foreach ($detailsFunction as $main)
{
$mainlisting = $main['listingId'];
$mainCat = strtolower($main['mainCat']);
$subCatO = strtolower($main['subCat']);
$subCat = str_replace(" ", "-", $subCatO);
$details[] = array('url' => base_url().'listings/'.$mainCat.'/'.$subCat,
'mainCat' => $main['mainCat'],
'subCat' => $main['subCat']
);
}
$detail = array_unique($details);
var_dump($detail);
return $detail;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment