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:
Did you know?Explore Trending and Topic pages for more stories 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

dinamic "textboxes"?
Ey all, my first post here, i hope its not a hard one

I display mysql results in a table

Comment Mod System Effects all rows...
Sorry if its confusing but here is whats going on: I have a table in a database called comments and

please hep to get values from a table row
can anyone tel me how I can select and get data from one row by pressing an Edit button in that row

pageination not working right... coping images over 4 pages
Code: <?php //This code will obtain the required page number from the $_GET array. Note that

Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages in

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

PHP - HTML
Could anyone give me some GOOD sample links for php - html email tutorial.

Thanks!

New to mysqli library - Multiple query problem
Greetings,

I am writing a batch program that executes 3 queries on a single page. Using mysql

IDOC error
Hi, When i send IDOC from ECC system to MII there is no problem ECC side, i says message sent succe

Record count of entire database
Does anyone know if there is a way to obtain the number of records in each table of the database usi

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