$currentLocale = setlocale(LC_ALL, 0); echo $currentLocale; //outputs C/en_US.UTF-8/C/C/C/C on my machine