Move array index to end


Posted on 16th Feb 2014 07:03 pm 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?

No comments posted yet

Your Answer:

Login to answer
297 Like 5 Dislike
Previous forums Next forums
Other forums

Combining Two Queries
I have two scripts that each work fine by themselves. One is a search script with a variable that de

getting rid of quotes in strings
sick of trying to deal with them in multiple ways (entering in and taking from database, echoing, ec

InternetOpenUrl() Invalid cert
Hi all,

Does anyone know how to prevent calls to InternetOpenUrl() from failing with erro

Typing math
I've added support for typesetting math using LaTeX on the forums.

Example:
Code: [Select]

preg_replace question
Hello!!

I hope someone can help me with preg_replace.

I load two tables from an extern

Get value from Select menu
Hi!

Have tried to find the solution on the web. Don't know if there is an easy one. A descrip

send message to the java application
Oracle 10g with Windows platform.

I have a java application that periodically pings the d

BB_Code error
I'm having a problem with a custom built function and keep getting this error:


Warning: M

Logic question
im wondering what's the best method to do the above list:

it is for alliance @ MMORPG game

Company Code for Vendors created through Business Partners
Hi, experts!

I'm trying to set up the integration between Business Partner (BP) and Vendo

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