- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
関数リファレンス/remove accents
提供: WordPress Codex 日本語版
目次
Description
Converts all accent characters to ASCII characters.
If there are no accent characters, then the string given is just returned.
Usage
%%%<?php remove_accents( $string ) ?>%%%
Parameters
- $string
- (string) (必須) Text that might have accent characters
- 初期値: なし
Return Values
- (string)
- Filtered string with replaced "nice" characters.
Examples
<?php $text = "Hoy será un gran día"; echo remove_accents ( $text ); ?>
Echo result: Hoy sera un gran dia
Notes
Change Log
Since: 1.2.1
Source File
remove_accents() is located in wp-includes/formatting.php
.
Related
関数リファレンス、テンプレートタグ目次もご覧ください。