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

The repetition structure: the while statement not working
New programming student, have assignment as follows:
A restaurant has 4 lunch combos for custom

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

a multi dimensional array with for each
hi, I have been asked to write an array, I have Zone 2,3,4,5,6,7,8 each zone has 3 sections of weigh

want to add a break after a certain amount of characters
i was wondering how to add a break in a blog post after a certain amount of characters... any idea o

I need to increse 6hours more, and i don't know how???
I need to increse 6hours more, and i don't know how???
<tr>
<t

mysql select query problem
how can i select multiple fields from multiple table in one query like

i have table name t1 a

Help with Hyperlink
Hi,

What I am trying to do may be simple, I just can't get it to work. Ok...

I am usin

Displaying a clickable playername
I am going wrong somewhere with the mysql_query, can someone please put me straight?

$playern

Form always sends to error page...
Hello,
Any help will be greatly appreciated. I am having trouble getting multiple fields to be re

SQl num_rows problem
when i try to count rows from an SQL select i get an warning

Code: [Select]$countviews = mysq

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