setlocale

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Set locale information
setlocale(int $categorystring $localesstring ...$rest): string|false
        setlocale(LC_TIME$site->locale());
    {




        
setlocale(LC_ALL'de_DE');



        
$submission Form::make('test')->makeSubmission();
        $this->assertStringNotContainsString(','$submission->id());



        
setlocale(LC_ALL'en_US');

    }

}
        $this->decimalPoint localeconv();

        
$this->decimalPoint $this->decimalPoint['decimal_point'];



        if (
$locale $this->flags & (self::DUMP_COMMA_SEPARATOR self::DUMP_TRAILING_COMMA) ? setlocale(\LC_NUMERIC0) : null) {

            
setlocale(\LC_NUMERIC'C');

        }
        $this->decimalPoint $this->decimalPoint['decimal_point'];



        if (
$locale $this->flags & (self::DUMP_COMMA_SEPARATOR self::DUMP_TRAILING_COMMA) ? setlocale(\LC_NUMERIC0) : null) {

            
setlocale(\LC_NUMERIC'C');

        }



        if (
$returnDump true === $output) {
                $this->setOutput($prevOutput);

            }

            if (
$locale) {

                
setlocale(\LC_NUMERIC$locale);

            }

        }