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

Checking if multidimensional array is empty?
I have a for with multiple test input fields. Specifically the user submits multiple names and ages

jquery validation in codeIgniter
hai i need to add client side validation to my fiels which are selected in a forloop.the fields are

PHP header help!
Hi all I am trying to get this php page to refresh every 5 seconds on my phone which is an aastra 48

Will this protect from mysql injection?
I do not want anything like DROP TABLE to work or any type of coding..

Heres my code.. is it

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

ID TYPE
1 pepperoni
2 C. bacon
3 taco

ID TY

php + mysql count consecutive data
I have a database of values and I want to work out how to display them if the values match a consecu

Is it possible to view php source code??
Hi All

I was just wondering if it's possible to view a websites php source code?
I know

Prevent PHP mail( ) from appending hostname to from address
Hey guys,

I want to be able to send texts to phones via email (since each phone has their own

Help with lottery style system?
I'm working on a currency system for forums and it is going to have a type of lottery system built i

Running a cron job through PHP/Apache?!
Hello all,
I have a PHP script which makes a cron file from user input. When i try to run the cro

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