<?php
$employer = array (
'username' => "username",
'number' => "205ab",
'email' => "employer4@site.de",
'language' => "en",
'usertype' => 2,
'agentid' => "10005",
'birthday' => "01.01.2000",
'reference' => 777,
);
asort($employer,SORT_REGULAR);
var_dump($employer);
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
- array(8) {
["birthday"]=>
string(10) "01.01.2000"
["usertype"]=>
int(2)
["reference"]=>
int(777)
["agentid"]=>
string(5) "10005"
["number"]=>
string(5) "205ab"
["email"]=>
string(17) "employer4@site.de"
["language"]=>
string(2) "en"
["username"]=>
string(8) "username"
}
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
array(8) {
["birthday"]=>
string(10) "01.01.2000"
["usertype"]=>
int(2)
["reference"]=>
int(777)
["agentid"]=>
string(5) "10005"
["number"]=>
string(5) "205ab"
["email"]=>
string(17) "employer4@site.de"
["language"]=>
string(2) "en"
["username"]=>
string(8) "username"
}
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
- array(8) {
["birthday"]=>
string(10) "01.01.2000"
["number"]=>
string(5) "205ab"
["email"]=>
string(17) "employer4@site.de"
["language"]=>
string(2) "en"
["username"]=>
string(8) "username"
["usertype"]=>
int(2)
["reference"]=>
int(777)
["agentid"]=>
string(5) "10005"
}
preferences:
162.92 ms | 403 KiB | 211 Q