BINDTEXTDOMAIN(3) 1 BINDTEXTDOMAIN(3)
bindtextdomain - Sets the path for a domain
SYNOPSIS
string bindtextdomain (string $domain, string $directory)
DESCRIPTION
The bindtextdomain(3) function sets the path for a domain.
PARAMETERS
o $domain
- The domain
o $directory
- The directory path
RETURN VALUES
The full pathname for the $domain currently being set.
EXAMPLES
Example #1
bindtextdomain(3) example
<?php
$domain = 'myapp';
echo bindtextdomain($domain, '/usr/share/myapp/locale');
?>
The above example will output:
/usr/share/myapp/locale
PHP Documentation Group BINDTEXTDOMAIN(3)