usort($aDataToChangeParentTmp, function($a,$b){ return strcmp(strtolower($a['name']),strtolower($b['name'])); });
trier un tableau en fonction des valeurs du tableau
Répondre
usort($aDataToChangeParentTmp, function($a,$b){ return strcmp(strtolower($a['name']),strtolower($b['name'])); });
# Redirect HTTP to HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
public function getClientIP(){
if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)){
return $_SERVER["HTTP_X_FORWARDED_FOR"];
}else if (array_key_exists('REMOTE_ADDR', $_SERVER)) {
return $_SERVER["REMOTE_ADDR"];
}else if (array_key_exists('HTTP_CLIENT_IP', $_SERVER)) {
return $_SERVER["HTTP_CLIENT_IP"];
}
return '';
}