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

Simple Scraper... Weird Output
Okay, maybe I just need a Blue Monster and some sleep, but....

I'm scraping a ringtone site

Having a problem get the selected item from a drop down menu
I have been looking at this for days now.

I have a drop down menu that get it's values from a

Only add new information from XML to MySQL
What I am doing, is taking a xml file, and adding the values to a database. However, what I want to

Table colours fail when extra row added
Hey Gurus,

I got a weird problem with formating the colour of a table made in php. Everything

urldecode question
How would I format this line of code properly?

<?php echo urldecode($_GET['Title']); ?

Firefox displaying PHP source code??
Currently testing a site thats almost built, am going to be including php on a sidebar on all pages

Accessing Infotype data in dialog program
Hi All
In Dialog programs attributes I didn't see any logical database field. How can I access

SMTP server...
I recently found a tutorial online on SMTP authentification for sending emails from webpages, here i

Echo-ing MySQL content and Keep Formatting?
I have data in my MySQL such as:

QuoteBlah blah

Blah blah

etc
but when i ech

Email/MMS to Site
Hey guys. I'm looking for a way for a user to upload images and/or text via their cell phones. It

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