ordering array keys?

Posted by fayer on Stack Overflow See other posts from Stack Overflow or by fayer
Published on 2010-03-16T21:00:03Z Indexed on 2010/03/16 21:01 UTC
Read the original article Hit count: 134

Filed under:

i want to create an array with 2 keys and i want them in following order:

$array['higher'];
$array['escalate'];

how could i accomplish this without creating any value.

i want to add values to the array with later on...

$array['higher'][] = 'some_value';
$array['escalate'][] = 'some_value';

...but first i need to create the keys in that order.

thanks in advance!

© Stack Overflow or respective owner

Related posts about php