Bir ilişkisel dizinin herhangi bir öğesini dizinin başlangıcına taşımanın en iyi yöntemi nedir?
Örneğin, aşağıdaki diziye sahip olduğumu varsayalım:
$myArray = array(
'two' => 'Blah Blah Blah 2',
'three' => 'Blah Blah Blah 3',
'one' => 'Blah Blah Blah 1',
'four' => 'Blah Blah Blah 4',
'five' => 'Blah Blah Blah 5',
);
Yapmak istediğim şey, 'bir' öğeyi başa taşımak ve aşağıdaki dizi ile sonlandırmak:
$myArray = array(
'one' => 'Blah Blah Blah 1',
'two' => 'Blah Blah Blah 2',
'three' => 'Blah Blah Blah 3',
'four' => 'Blah Blah Blah 4',
'five' => 'Blah Blah Blah 5',
);