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?

297 Like 5 Dislike
Previous php-forum Next php-forum
Other php-forum

Sequre login with cookies.
I want to build secure login with cookies. I just want your ideas about this, your suggestions. What

Google Map
I have done Google Map Integration for one my project. But for that we need the "latitude and l

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

Code clarification
Hi

In the following code what could be the "search_print()" and where it could be

Custom CMS
This is a big custom CMS script I'd like to develop and would like some help atleast figuring out wh

How could I combine these arrays??
Hello.. I'm trying to figure out a way to combine these first two arrays to get the last array..

rand() function
just a general question guys a girls, is the rand() function 100% random or is it based on time?

puting for loop in 1 value
hi ,

how do i put this code in 1 value:
Code: <?php
for ($i=1; $i<=5; $i

[Need Help] php timing issues
I don't know what is going wrong. I need some help with being able to set an image at 9:00am Colorad

fopen() security
As i understood the usage of fopen() for it to function correctly the Dir you write to has to be rw

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