« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 40 for strtoupper (0.001 sec.)
mb_strtoupper — 文字列を大文字にする | PHP 8.3 14213
mb_strtoupper (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) mb_strtoupper — 文字列を大文字にする 説明 function mb_strtoupper ( string $string , ? string $encoding = null ): string string のすべてのアルファベットを大文字にして返します。 パラメータ s ... eError をスローするようになりました。 これより前のバージョンでは、 E_WARNING が発生し、 false を返していました。 例 例1 mb_strtoupper() の例 <?php $str = "Mary Had A Little Lamb and She LOVED It So" ; $str = mb_strtoupper ( $str ); echo $str ; // 結果は MA ... RY HAD A LITTLE LAMB AND SHE LOVED IT SO ?> 例2 非ラテン UTF-8 テキストでの mb_strtoupper() の例 <?php $str = "Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός" ; $str = mb_strtoupper ( $str , 'UTF-8 ... ΖΕΙ ΥΠΈΡ ΝΩΘΡΟΎ ΚΥΝΌΣ ?> Unicode Unicode 文字属性についての詳細は » https://www.unicode.org/reports/tr21/ を参照ください。 strtoupper() と違い、アルファベットであるかどうかは Unicode 文字属性をもとに決定されます。したがって、この関数の挙動は ロケールの設定 ...
https://man.mtool.work/php/8.3/function.mb-strtoupper.html
strtoupper — 文字列を大文字にする | PHP 8.3 13433
strtoupper (PHP 4, PHP 5, PHP 7, PHP 8) strtoupper — 文字列を大文字にする 説明 function strtoupper ( string $string ): string string の、ASCII のアルファベット部分をすべて大文字にして返します。 "a" (0x61) から "z" (0x7a) までの範囲のバイト列 ... ドされた文字列中にある ASCII 文字を変換する際も、 このやり方が使えます。 マルチバイトの ASCII でない文字を変換するには、 mb_strtoupper() を使います。 パラメータ string 入力文字列。 戻り値 大文字にした文字列を返します。 変更履歴 バージョン 説明 8.2.0 ケース変 ... 換は、 setlocale() で設定されたロケールに依存しなくなりました。 ASCII 文字のみが変換されます。 例 例1 strtoupper() の例 <?php $str = "Mary Had A Little Lamb and She LOVED It So" ; $str = strtoupper ( $str ); echo $str ; // 「MARY HAD A ... 文字列を小文字にする ucfirst() - 文字列の最初の文字を大文字にする ucwords() - 文字列の各単語の最初の文字を大文字にする mb_strtoupper() - 文字列を大文字にする 他のマニュアルの関連ページ Linux JM uuid_unparse(3) Linux JM wcscasecmp(3) Linux JM look(1) Linux ...
https://man.mtool.work/php/8.3/function.strtoupper.html
stream_filter_register — ユーザー定義のストリームフィルタを登録する | PHP 8.3 10983
stream_filter_register (PHP 5, PHP 7, PHP 8) stream_filter_register — ユーザー定義のストリームフィルタを登録する 説明 function stream_filter_register ( string $filter_name , string $class ): bool stream_filter_register() は、 fopen() や fre ... リームの文字を大文字化するフィルタ 下記の例は、読み込まれたり書き出されたりするデータに含まれるすべての英文字を 大文字化する strtoupper ストリームを実装し、 foo-bar.txt ストリームに適用するものです。 <?php /* フィルタクラスを定義する */ class strtoupper_filt ... lter ( $in , $out , & $consumed , $closing ) { while ( $bucket = stream_bucket_make_writeable ( $in )) { $bucket -> data = strtoupper ( $bucket -> data ); $consumed += $bucket -> datalen ; stream_bucket_append ( $out , $bucket ); } return PSFS_PASS_ON ; } ... } /* PHP にフィルタを登録する */ stream_filter_register ( "strtoupper" , "strtoupper_filter" ) or die( "Failed to register filter" ); $fp = fopen ( "foo-bar.txt" , "w" ); /* フィルタを開いたス ...
https://man.mtool.work/php/8.3/function.stream-filter-register.html
lcfirst — 文字列の最初の文字を小文字にする | PHP 8.3 8737
lcfirst (PHP 5 >= 5.3.0, PHP 7, PHP 8) lcfirst — 文字列の最初の文字を小文字にする 説明 function lcfirst ( string $string ): string string の最初の文字が ASCII の "A" (0x41) から "Z" (0x5a) までの範囲にあれば、 それを小文字にします。 パラメー ... ( $foo ), PHP_EOL ; // helloWorld $bar = 'HELLO WORLD!' ; echo lcfirst ( $bar ), PHP_EOL ; // hELLO WORLD! echo lcfirst ( strtoupper ( $bar )), PHP_EOL ; // hELLO WORLD! ?> 参考 ucfirst() - 文字列の最初の文字を大文字にする strtolower() - 文字列を小文字にす ... る strtoupper() - 文字列を大文字にする ucwords() - 文字列の各単語の最初の文字を大文字にする 他のマニュアルの関連ページ Linux JM wcscasec ...
https://man.mtool.work/php/8.3/function.lcfirst.html
mb_convert_case — 文字列に対してケースフォールディングを行う | PHP 8.3 8643
mb_convert_case (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) mb_convert_case — 文字列に対してケースフォールディングを行う 説明 function mb_convert_case ( string $string , int $mode , ? string $encoding = null ): string mode で指定された方法で stri ... $str , MB_CASE_TITLE , "UTF-8" ); echo $str , PHP_EOL ; ?> Unicode 標準のケースフォールディング関数である strtolower() や strtoupper() と違い、ケースフォールディングは Unicode 文字属性を基準に行われます。したがって、この関数の挙動は ロケールの設定に影響さ ... 属性についての詳細は » https://www.unicode.org/reports/tr21/ を参照ください。 参考 mb_strtolower() - 文字列を小文字にする mb_strtoupper() - 文字列を大文字にする strtolower() - 文字列を小文字にする strtoupper() - 文字列を大文字にする ucfirst() - 文字列の最初の ...
https://man.mtool.work/php/8.3/function.mb-convert-case.html
関数のオーバーロード機能 | PHP 8.3 8144
関数のオーバーロード機能 警告 この機能は PHP 7.2.0 で 非推奨 になり、PHP 8.0.0 で 削除 されました。この機能に頼らないことを強く推奨します。 PHP アプリケーションの多くは、英語等のシングルバイトの言語用に設計されており、 日本語を含むマルチバイ ... rlen() mb_strlen() 2 strpos() mb_strpos() 2 strrpos() mb_strrpos() 2 substr() mb_substr() 2 strtolower() mb_strtolower() 2 strtoupper() mb_strtoupper() 2 stripos() mb_stripos() 2 strripos() mb_strripos() 2 strstr() mb_strstr() 2 stristr() mb_stristr() 2 st ...
https://man.mtool.work/php/8.3/mbstring.overload.html
パイプ演算子 | PHP 8.3 8050
パイプ演算子 PHP 8.5 以降では、callable に直接値を渡す演算子をサポートしています。 |> 演算子、または "パイプ" は、右辺にパラメータをひとつ取る callable を受け入れ、左辺値をそれに渡し、callable の結果を評価します。 右辺の callable は、有効な ... の呼び出しをチェインさせる <?php $result = "PHP Rocks" |> htmlentities (...) |> str_split (...) |> (fn( $x ) => array_map ( strtoupper (...), $x )) |> (fn( $x ) => array_filter ( $x , fn( $v ) => $v != 'O' )) ; print_r ( $result ); $temp = "PHP Rocks" ; $te ... mp = htmlentities ( $temp ); $temp = str_split ( $temp ); $temp = array_map ( strtoupper (...), $temp ); $temp = array_filter ( $temp , fn( $v ) => $v != 'O' ); $result = $temp ; print_r ( $result ); ?> 上の例の ...
https://man.mtool.work/php/8.3/language.operators.functional.html
汚染された文字列の汚染マークを広げる関数や文 | PHP 8.3 7863
汚染された文字列の汚染マークを広げる関数や文 関数 / 文 対応するようになったバージョン = (代入) 0.1.0 . (連結) 0.1.0 "{$var}" (変数の置換) 0.1.0 .= (連結代入) 0.1.0 strval 0.3.0 explode/split 0.3.0 implode/join 0.3.0 sprintf 0.3.0 vsprintf 0 ... .3.0 trim 0.4.0 rtrim 0.4.0 ltrim 0.4.0 strstr 0.5.0 str_pad 0.5.0 str_replace 0.5.0 substr 0.5.0 strtolower 0.5.0 strtoupper 0.5.0 他のマニュアルの関連ページ Linux JM sockatmark(3) Python introduction Vim spell Vim usr_10 Linux JM refer(1) Linux J ...
https://man.mtool.work/php/8.3/taint.detail.basic.html
ucfirst — 文字列の最初の文字を大文字にする | PHP 8.3 7660
ucfirst (PHP 4, PHP 5, PHP 7, PHP 8) ucfirst — 文字列の最初の文字を大文字にする 説明 function ucfirst ( string $string ): string string の最初の文字が "a" (0x61) から "z" (0x7a) までの ASCII 文字の場合、 それを大文字にします。 パラメータ st ... bar )), PHP_EOL ; // Hello world! ?> 参考 lcfirst() - 文字列の最初の文字を小文字にする strtolower() - 文字列を小文字にする strtoupper() - 文字列を大文字にする ucwords() - 文字列の各単語の最初の文字を大文字にする mb_convert_case() - 文字列に対してケースフォ ...
https://man.mtool.work/php/8.3/function.ucfirst.html
iterator_apply — ユーザー関数をイテレータのすべての要素でコールする | PHP 8.3 7567
iterator_apply (PHP 5 >= 5.1.0, PHP 7, PHP 8) iterator_apply — ユーザー関数をイテレータのすべての要素でコールする 説明 function iterator_apply ( Traversable $iterator , callable $callback , ? array $args = null ): int イテレータ内のすべての ... 戻り値 イテレータの要素数を返します。 例 例1 iterator_apply() の例 <?php function print_caps ( Iterator $iterator ) { echo strtoupper ( $iterator -> current ()) . "\n" ; return TRUE ; } $it = new ArrayIterator (array( "Apples" , "Bananas" , "Cherries" )); ...
https://man.mtool.work/php/8.3/function.iterator-apply.html
PREV 1 2 3 4 NEXT