Jump to content

[SOLVED] Really Quick Question


iShaun

Recommended Posts

How do you reverse the order of an array. What i have now it a function that does:

 

function add_location($url,$title)
{

$this->locations[] = '<a href="'.$url.'">'.$title.'</a>';

}

 

And then this to combine everything:

 

// Get our location.
function location()
{

// Set the location string.
$this->core->add_location('?',$this->settings['forum_title']);

// For every location set...
foreach($this->core->locations as $location)
{

// Add it to the string.
$this->location_str .= ' > '.$location;

}

}

 

...And unforutnately, the links come out backwards i.e: > Login > Board Title. How do I fix this?

 

-iShaun

Link to comment
https://forums.phpfreaks.com/topic/124140-solved-really-quick-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.