bindtextdomain
Function • Params changed in PHP 8.4
Sets or gets the path for a domain.
bindtextdomain Function synopsis
bindtextdomain(string $domain, ?string $directory = null): string|false
Parameters
$domain
Typestring
The domain.
$directory
OptionalType?stringDefault valuenull
The directory path.
An empty string means the current directory.
If null, the currently set directory is returned.
Return value
Typestring|false
The full pathname for the $domain currently being set,
or false on failure.
Changes to the bindtextdomain Function
PHP 8.4
- Parameter default value added for position #2 (
$directory):null
- bindtextdomain(string $domain, ?string $directory): string|false
+ bindtextdomain(string $domain, ?string $directory = null): string|false PHP 8.0
- Return type added:
string|false - Parameter name of parameter #1 changed:
$domain_nameto$domain - Parameter type added for parameter #1 (
$domain):string - Parameter name of parameter #2 changed:
$dirto$directory - Parameter type added for parameter #2 (
$directory):?string
- bindtextdomain($domain_name, $dir)
+ bindtextdomain(string $domain, ?string $directory): string|false bindtextdomain Function Availability
bindtextdomain Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes |
| PHP 8.5Supported (Latest) | Yes |
| PHP 8.4Supported | Yes |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |