fix example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@260595 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Stanislav Malyshev 2008-06-02 05:32:55 +00:00
parent 6076bbcefc
commit 1c9734af29

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<book xml:id="book.intl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Internationalization Functions</title>
@ -209,7 +209,7 @@ $result = collator_compare($coll, "string#1", "string#2");
<![CDATA[
<?php
$coll = new Collator('en_US');
$al = $coll->getLocaleByType(Locale::ACTUAL_LOCALE);
$al = $coll->getLocale(Locale::ACTUAL_LOCALE);
echo "Actual locale: $al\n";
$formatter = new NumberFormatter('en_US', NumberFormatter::DECIMAL);