464 |
jpm |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html>
|
|
|
3 |
<head>
|
|
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
5 |
<meta name="generator" content="ApiGen 2.8.0">
|
|
|
6 |
|
465 |
jpm |
7 |
<title>Class Chaine</title>
|
464 |
jpm |
8 |
|
|
|
9 |
<script type="text/javascript" src="resources/combined.js?4205936287"></script>
|
465 |
jpm |
10 |
<script type="text/javascript" src="elementlist.js?4111837732"></script>
|
464 |
jpm |
11 |
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360">
|
|
|
12 |
|
|
|
13 |
</head>
|
|
|
14 |
|
|
|
15 |
<body>
|
|
|
16 |
<div id="left">
|
|
|
17 |
<div id="menu">
|
|
|
18 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
<div id="groups">
|
|
|
22 |
<h3>Packages</h3>
|
|
|
23 |
<ul>
|
|
|
24 |
<li><a href="package-Framework.html">Framework</a>
|
|
|
25 |
</li>
|
|
|
26 |
<li><a href="package-None.html">None</a>
|
|
|
27 |
</li>
|
|
|
28 |
<li><a href="package-PHP.html">PHP</a>
|
|
|
29 |
</li>
|
|
|
30 |
<li class="active"><a href="package-Utilitaire.html">Utilitaire</a>
|
|
|
31 |
</li>
|
|
|
32 |
</ul>
|
|
|
33 |
</div>
|
|
|
34 |
|
|
|
35 |
<hr>
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
<div id="elements">
|
|
|
39 |
<h3>Classes</h3>
|
|
|
40 |
<ul>
|
|
|
41 |
<li class="active"><a href="class-Chaine.html">Chaine</a></li>
|
|
|
42 |
<li><a href="class-Encodage.html">Encodage</a></li>
|
|
|
43 |
<li><a href="class-Fichier.html">Fichier</a></li>
|
|
|
44 |
<li><a href="class-Pattern.html">Pattern</a></li>
|
|
|
45 |
<li><a href="class-Tableau.html">Tableau</a></li>
|
|
|
46 |
</ul>
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
</div>
|
|
|
53 |
</div>
|
|
|
54 |
</div>
|
|
|
55 |
|
|
|
56 |
<div id="splitter"></div>
|
|
|
57 |
|
|
|
58 |
<div id="right">
|
|
|
59 |
<div id="rightInner">
|
|
|
60 |
<form id="search">
|
|
|
61 |
<input type="hidden" name="cx" value="">
|
|
|
62 |
<input type="hidden" name="ie" value="UTF-8">
|
|
|
63 |
<input type="text" name="q" class="text">
|
|
|
64 |
<input type="submit" value="Search">
|
|
|
65 |
</form>
|
|
|
66 |
|
|
|
67 |
<div id="navigation">
|
|
|
68 |
<ul>
|
|
|
69 |
<li>
|
|
|
70 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
71 |
</li>
|
|
|
72 |
<li>
|
|
|
73 |
<a href="package-Utilitaire.html" title="Summary of Utilitaire"><span>Package</span></a>
|
|
|
74 |
</li>
|
|
|
75 |
<li class="active">
|
|
|
76 |
<span>Class</span> </li>
|
|
|
77 |
</ul>
|
|
|
78 |
<ul>
|
|
|
79 |
<li>
|
|
|
80 |
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
|
|
|
81 |
</li>
|
|
|
82 |
<li>
|
|
|
83 |
<a href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a>
|
|
|
84 |
</li>
|
|
|
85 |
<li>
|
|
|
86 |
<a href="todo.html" title="Todo list"><span>Todo</span></a>
|
|
|
87 |
</li>
|
|
|
88 |
</ul>
|
|
|
89 |
<ul>
|
|
|
90 |
</ul>
|
|
|
91 |
</div>
|
|
|
92 |
|
|
|
93 |
<div id="content" class="class">
|
|
|
94 |
<h1>Class Chaine</h1>
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
<div class="description">
|
|
|
98 |
|
|
|
99 |
<p>Classe fournissant des méthodes statiques de manipulation des chaînes de
|
|
|
100 |
caractères (String).</p>
|
|
|
101 |
|
|
|
102 |
</div>
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
<div class="info">
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
<b>Package:</b> <a href="package-Utilitaire.html">Utilitaire</a><br>
|
|
|
117 |
|
|
|
118 |
<b>Category:</b>
|
|
|
119 |
PHP 5.2<br>
|
|
|
120 |
<b>Copyright:</b>
|
|
|
121 |
Copyright (c) 2010, Tela Botanica (<a
|
|
|
122 |
href="mailto:accueil@tela-botanica.org">accueil@<!-- -->tela-botanica.org</a>)<br>
|
|
|
123 |
<b>License:</b>
|
|
|
124 |
<a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL-v3</a><br>
|
|
|
125 |
<b>License:</b>
|
|
|
126 |
<a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL-v2</a><br>
|
|
|
127 |
<b>Author:</b>
|
|
|
128 |
Jean-Pascal MILCENT <<a
|
|
|
129 |
href="mailto:jpm@tela-botanica.org">jpm@<!-- -->tela-botanica.org</a>><br>
|
|
|
130 |
<b>Version:</b>
|
|
|
131 |
$Id: Chaine.php 343 2011-06-09 14:59:36Z jpm $<br>
|
|
|
132 |
<b>Link:</b>
|
|
|
133 |
/doc/framework/<br>
|
465 |
jpm |
134 |
<b>Located at</b> <a href="source-class-Chaine.html#3-67" title="Go to source code">utilitaires/Chaine.php</a><br>
|
464 |
jpm |
135 |
</div>
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
<table class="summary" id="methods">
|
|
|
140 |
<caption>Methods summary</caption>
|
|
|
141 |
<tr data-order="supprimerAccents" id="_supprimerAccents">
|
|
|
142 |
|
|
|
143 |
<td class="attributes"><code>
|
|
|
144 |
public static
|
|
|
145 |
la
|
|
|
146 |
|
|
|
147 |
</code>
|
|
|
148 |
</td>
|
|
|
149 |
|
|
|
150 |
<td class="name"><div>
|
|
|
151 |
<a class="anchor" href="#_supprimerAccents">#</a>
|
|
|
152 |
<code><a href="source-class-Chaine.html#48-66" title="Go to source code">supprimerAccents</a>( <span>String <var>$chaine</var></span>, <span>String <var>$encodage</var> = <span class="php-quote">'UTF-8'</span></span> )</code>
|
|
|
153 |
|
|
|
154 |
<div class="description short">
|
|
|
155 |
|
|
|
156 |
<p>Supprime ou remplace les accents d'une chaine en PHP. La solution retenu,
|
|
|
157 |
provenant du site <a href="http://www.lecoindunet.com/zone_php/scripts_utiles/remplacer-les-caracteres-accentues-dune-chaine-en-php-72">lecoindunet.com</a>, consiste en deux tableaux (caractères avec et sans accents)
|
|
|
158 |
car cela permetra éventuellement de fournir des méthodes pour récupérer ces
|
|
|
159 |
tableaux pour d'autres traitements. Une autre solution aurait été d'utiliser
|
|
|
160 |
les entités HTML comme proposé par le site <a href="http://www.weirdog.com/blog/php/supprimer-les-accents-des-caracteres-accentues.html">weirdog.com</a>.</p>
|
|
|
161 |
|
|
|
162 |
</div>
|
|
|
163 |
|
|
|
164 |
<div class="description detailed hidden">
|
|
|
165 |
|
|
|
166 |
<p>Supprime ou remplace les accents d'une chaine en PHP. La solution retenu,
|
|
|
167 |
provenant du site <a href="http://www.lecoindunet.com/zone_php/scripts_utiles/remplacer-les-caracteres-accentues-dune-chaine-en-php-72">lecoindunet.com</a>, consiste en deux tableaux (caractères avec et sans accents)
|
|
|
168 |
car cela permetra éventuellement de fournir des méthodes pour récupérer ces
|
|
|
169 |
tableaux pour d'autres traitements. Une autre solution aurait été d'utiliser
|
|
|
170 |
les entités HTML comme proposé par le site <a href="http://www.weirdog.com/blog/php/supprimer-les-accents-des-caracteres-accentues.html">weirdog.com</a>.</p>
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
<h4>Parameters</h4>
|
|
|
175 |
<div class="list"><dl>
|
|
|
176 |
<dt><var>$chaine</var></dt>
|
|
|
177 |
<dd><code>String</code><br>$chaine la chaine de caractères dans laquelle supprimer les accents.</dd>
|
|
|
178 |
<dt><var>$encodage</var></dt>
|
|
|
179 |
<dd><code>String</code><br>$encodage le code d'encodage de la chaine si ce n'est pas de l'UTF-8.</dd>
|
|
|
180 |
</dl></div>
|
|
|
181 |
|
|
|
182 |
<h4>Returns</h4>
|
|
|
183 |
<div class="list">
|
|
|
184 |
<code>la</code><br>chaine de caractères sans accent.<br>
|
|
|
185 |
</div>
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
</div>
|
|
|
191 |
</div></td>
|
|
|
192 |
</tr>
|
|
|
193 |
</table>
|
|
|
194 |
|
|
|
195 |
|
|
|
196 |
|
|
|
197 |
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
|
|
|
207 |
|
|
|
208 |
|
|
|
209 |
|
|
|
210 |
|
|
|
211 |
|
|
|
212 |
</div>
|
|
|
213 |
|
|
|
214 |
<div id="footer">
|
465 |
jpm |
215 |
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
|
464 |
jpm |
216 |
</div>
|
|
|
217 |
</div>
|
|
|
218 |
</div>
|
|
|
219 |
</body>
|
|
|
220 |
</html>
|