Help Ordering Arrays


Posted on 16th Feb 2014 07:03 pm by admin

Hi, I have 3 arrays as shown below.

Code: $users = $this->get_latest_users();
$flirt = $this->get_latest_flirts();
$hotlist = $this->get_latest_hotlist();

These arrays for a key have the strtotime value of whenever something was posted. They then have some html as a value.

So..

Code: $users = array ('1257785194' => 'html');
What I need to do is merge the 3 above arrays and sort them so it shows the soonest first. The structure of arrays can be changed, thats not a problem. I just need to get this working. Any ideas?

EDIT: I need to preserve the strtotime value

No comments posted yet

Your Answer:

Login to answer
174 Like 20 Dislike
Previous forums Next forums
Other forums

noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.

Passing vars to the DB
I have 3 small testing tables:

ID TYPE
1 pepperoni
2 C. bacon
3 taco

ID TY

how do i make a string??
hey guys,
can someone please tell me how to put data from the glob function into a string

error reporting
hey everyone

I have a production server in which I want error reporting but only on some page

Socket Server
In my following socket server, I am trying to listen to a connection through port 12345 in my web br

Ajax Error since Upgrading to 3.5
Ever since upgrading my site to .NET 3.5 (I needed LINQ), I've been getting this annoying error on o

user validation always displaying invalid ? please help
Hello,

I have 2 accounts and there is a field in mysql called validated it can be either &quo

imap: how to save a copy of sent emails to sent elements
Hello my friends,

I am writing an online emailing application with inbox outbox/sent elements

writing a screen scraper
Hello,

I'm writing a screen scraper application and want to be able to get absolute addresses

Checkbox info wont include in Mailto
Hey, im new to php.
Basically I have made a form to request which type of job(s) are needed, whic

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash