Move array index to end

Posted on 16th Feb 2014 by admin

Hey guys,
Quick question:

I have an array that looks like this:
Code: [Select]$var = array(
'name' => 'thename',
'title' => 'thetitle',
'media' => 'themedia'
);

and I need to move the 'name' index to the end. Like so:
Code: [Select]$var = array(
'title' => 'thetitle',
'media' => 'themedia',
'name' => 'thename'
);

How do I do that?

Other forums