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();
Did you know?Explore Trending and Topic pages for more stories like this.
$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

Escaped characters
I have a script that allows you to post news to the home page of my site. Along with the news is the

making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j

Update data to upper case in parent/child tables
Hi Gurus!

In production we have a product table and which is being reference by many tabl

displaying unknown amount of results
I am reading a directory and getting a list of folders in the directory, I want to display the folde

array empty
Hiya peeps,

Ok here is the codes.

order.php

Code:

Php script to read msword file
hi,

I need to read a msword file and i want to print the contents in that word file.

i

progress bar...need expert opinion of experienced webmaster
Hey guys, quick question:

I want to display a progress bar when I upload files, but I am not

login and redirect
hello! can someone help me.. can you give me an idea.. I want to make a login page and redirects it

simplexml_load_file and rss problem
Hi,

I have a problem parsing an rss feed using simplexml_load_file - this is strange as i hav

EU VAT Package 2010
Does any one know whether SAP will be developing new reporting functionality due the new VAT rules t

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