File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <!-- EN-Revision: 1976eae0d815797af97a1e16c5cd90ffc2868395 Maintainer: PhilDaiguille Status: ready -->
2+ <!-- EN-Revision: 0194deb3cec8d79ae6b13700f3cd031d14597838 Maintainer: lacatoire Status: ready -->
33<!-- Reviewed: no -->
44<refentry xml : id =" collator.setattribute" xmlns =" http://docbook.org/ns/docbook" >
55 <refnamediv >
7777 <programlisting role =" php" >
7878<![CDATA[
7979<?php
80- $coll = collator_create( 'en_CA' );
81- $val = collator_get_attribute( $coll, Collator::NUMERIC_COLLATION );
82- if ($val === false) {
83- // Manejo de errores.
84- } elseif ($val === Collator::ON) {
85- // Algo útil
86- }
80+ $coll = collator_create('en_CA');
81+ collator_set_attribute($coll, Collator::NORMALIZATION_MODE, Collator::ON);
8782?>
8883]]>
8984 </programlisting >
You can’t perform that action at this time.
0 commit comments