- var_dump: documentation ( source)
- putenv: documentation ( source)
- gethostbynamel: documentation ( source)
- setlocale: documentation ( source)
<?php
putenv('LANG=ja_JP.UTF-8');
putenv('LC_ALL=');
setlocale(LC_ALL, 'C');
var_dump(setlocale(LC_ALL, "0"));
var_dump(gethostbynamel("xxx.invalid"));
var_dump(setlocale(LC_ALL, "0"));