Doc #63883 [Opn->Csd]: Example in locale_lookup() function is misleading.
Edit report at https://bugs.php.net/bug.php?id=63883&edit=1
ID: 63883
User updated by: cappytoi at yahoo dot com
Reported by: cappytoi at yahoo dot com
Summary: Example in locale_lookup() function is misleading.
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: CENTOS
PHP Version: 5.4.10
Block user comment: N
Private report: N
New Comment:
As of now this issue seems to be resolved.
Previous Comments:
------------------------------------------------------------------------
[2013-01-02 04:25:55] cappytoi at yahoo dot com
Description:
------------
---
From manual page: http://www.php.net/locale.lookup#refsect1-locale.lookup-examples
---
While the method signature is;
string locale_lookup ( array $langtag , string $locale [, bool $canonicalize =
false [, string $default ]] )
Both examples states that:
echo locale_lookup($arr, 'de-DE-1996-x-prv1-prv2', 'en_US');
The writer forgot to add $canonicalize before $default
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63883&edit=1
Thread (2 messages)