« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 39 for strtolower (0.002 sec.)
mb_strtolower — 文字列を小文字にする | PHP 8.3 14550
mb_strtolower (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) mb_strtolower — 文字列を小文字にする 説明 function mb_strtolower ( string $string , ? string $encoding = null ): string string のすべてのアルファベットを小文字にして返します。 パラメータ s ... eError をスローするようになりました。 これより前のバージョンでは、 E_WARNING が発生し、 false を返していました。 例 例1 mb_strtolower() の例 <?php $str = "Mary Had A Little Lamb and She LOVED It So" ; $str = mb_strtolower ( $str ); echo $str ; // 結果は ma ... ry had a little lamb and she loved it so ?> 例2 非ラテン UTF-8 テキストでの mb_strtolower() の例 <?php $str = "Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός" ; $str = mb_strtolower ( $str , 'UTF-8 ... ' ); echo $str ; // 結果は τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός ?> 注意 strtolower() と違い、アルファベットであるかどうかは Unicode 文字属性をもとに決定されます。したがって、この関数の挙動は ロケールの設定 ...
https://man.mtool.work/php/8.3/function.mb-strtolower.html
strtolower — 文字列を小文字にする | PHP 8.3 13830
strtolower (PHP 4, PHP 5, PHP 7, PHP 8) strtolower — 文字列を小文字にする 説明 function strtolower ( string $string ): string string の、ASCII のアルファベット部分をすべて小文字にして返します。 "A" (0x41) から "Z" (0x5a) までの範囲のバイト列 ... ドされた文字列中にある ASCII 文字を変換する際も、 このやり方が使えます。 マルチバイトの ASCII でない文字を変換するには、 mb_strtolower() を使います。 パラメータ string 入力文字列。 戻り値 小文字に変換した文字列を返します。 変更履歴 バージョン 説明 8.2.0 ケー ... ス変換は、 setlocale() で設定されたロケールに依存しなくなりました。 ASCII 文字のみが変換されます。 例 例1 strtolower() の例 <?php $str = "Mary Had A Little Lamb and She LOVED It So" ; $str = strtolower ( $str ); echo $str ; // mary had a l ... 文字列を大文字にする ucfirst() - 文字列の最初の文字を大文字にする ucwords() - 文字列の各単語の最初の文字を大文字にする mb_strtolower() - 文字列を小文字にする 他のマニュアルの関連ページ Linux JM MB_CUR_MAX(3) Linux JM uuid_unparse(3) Linux JM look(1) Linux ...
https://man.mtool.work/php/8.3/function.strtolower.html
ucfirst — 文字列の最初の文字を大文字にする | PHP 8.3 8865
ucfirst (PHP 4, PHP 5, PHP 7, PHP 8) ucfirst — 文字列の最初の文字を大文字にする 説明 function ucfirst ( string $string ): string string の最初の文字が "a" (0x61) から "z" (0x7a) までの ASCII 文字の場合、 それを大文字にします。 パラメータ st ... $foo ), PHP_EOL ; // Hello world! $bar = 'HELLO WORLD!' ; echo ucfirst ( $bar ), PHP_EOL ; // HELLO WORLD! echo ucfirst ( strtolower ( $bar )), PHP_EOL ; // Hello world! ?> 参考 lcfirst() - 文字列の最初の文字を小文字にする strtolower() - 文字列を小文字にす ...
https://man.mtool.work/php/8.3/function.ucfirst.html
mb_convert_case — 文字列に対してケースフォールディングを行う | PHP 8.3 8755
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 ... b_convert_case ( $str , MB_CASE_TITLE , "UTF-8" ); echo $str , PHP_EOL ; ?> Unicode 標準のケースフォールディング関数である strtolower() や strtoupper() と違い、ケースフォールディングは Unicode 文字属性を基準に行われます。したがって、この関数の挙動は ロケー ... を変換することができます。 Unicode 文字属性についての詳細は » https://www.unicode.org/reports/tr21/ を参照ください。 参考 mb_strtolower() - 文字列を小文字にする mb_strtoupper() - 文字列を大文字にする strtolower() - 文字列を小文字にする strtoupper() - 文字列を ...
https://man.mtool.work/php/8.3/function.mb-convert-case.html
プロパティフック | PHP 8.3 8755
プロパティフック プロパティフックは、他の言語では「プロパティアクセサー」とも呼ばれる仕組みで、 プロパティの読み書き動作へ干渉し、それを上書きする機能を提供します。 この機能には、次の2つの目的があります: get- メソッドや set- メソッドを使わず ... his -> modified ) { return $this -> foo . ' (modified)' ; } return $this -> foo ; } set ( string $value ) { $this -> foo = strtolower ( $value ); $this -> modified = true ; } } } $example = new Example (); $example -> foo = 'changed' ; print $example -> fo ... 'default value' { get => $this -> foo . ( $this -> modified ? ' (modified)' : '' ); set ( string $value ) { $this -> foo = strtolower ( $value ); $this -> modified = true ; } } } ?> set フックのパラメータの型がプロパティの型と同じ場合 (典型的にはそうなりま ... lic string $foo = 'default value' { get => $this -> foo . ( $this -> modified ? ' (modified)' : '' ); set { $this -> foo = strtolower ( $value ); $this -> modified = true ; } } } ?> set フックが、渡された値を変形して保存するだけの場合には、 アロー式でより簡 ...
https://man.mtool.work/php/8.3/language.oop5.property-hooks.html
ucwords — 文字列の各単語の最初の文字を大文字にする | PHP 8.3 8348
ucwords (PHP 4, PHP 5, PHP 7, PHP 8) ucwords — 文字列の各単語の最初の文字を大文字にする 説明 function ucwords ( string $string , string $separators = " \t\r\n\f\v" ): string 文字が "a" (0x61) から "z" (0x7a) までのアルファベットの場合、 str ... $foo ), PHP_EOL ; // Hello World! $bar = 'HELLO WORLD!' ; echo ucwords ( $bar ), PHP_EOL ; // HELLO WORLD! echo ucwords ( strtolower ( $bar )), PHP_EOL ; // Hello World! ?> 例2 ucwords() で、カスタムの区切り文字を指定する例 <?php $foo = 'hello|world!' ; e ... HP_EOL ; // Mike O'Hara ?> 注意 注意 : この関数はバイナリデータに対応しています。 参考 strtoupper() - 文字列を大文字にする strtolower() - 文字列を小文字にする ucfirst() - 文字列の最初の文字を大文字にする mb_convert_case() - 文字列に対してケースフォールディ ...
https://man.mtool.work/php/8.3/function.ucwords.html
関数のオーバーロード機能 | PHP 8.3 8238
関数のオーバーロード機能 警告 この機能は PHP 7.2.0 で 非推奨 になり、PHP 8.0.0 で 削除 されました。この機能に頼らないことを強く推奨します。 PHP アプリケーションの多くは、英語等のシングルバイトの言語用に設計されており、 日本語を含むマルチバイ ... 関数 1 mail() mb_send_mail() 2 strlen() 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( ...
https://man.mtool.work/php/8.3/mbstring.overload.html
汚染された文字列の汚染マークを広げる関数や文 | PHP 8.3 7940
汚染された文字列の汚染マークを広げる関数や文 関数 / 文 対応するようになったバージョン = (代入) 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 ...
https://man.mtool.work/php/8.3/taint.detail.basic.html
lcfirst — 文字列の最初の文字を小文字にする | PHP 8.3 7721
lcfirst (PHP 5 >= 5.3.0, PHP 7, PHP 8) lcfirst — 文字列の最初の文字を小文字にする 説明 function lcfirst ( string $string ): string string の最初の文字が ASCII の "A" (0x41) から "Z" (0x5a) までの範囲にあれば、 それを小文字にします。 パラメー ... WORLD! echo lcfirst ( strtoupper ( $bar )), PHP_EOL ; // hELLO WORLD! ?> 参考 ucfirst() - 文字列の最初の文字を大文字にする strtolower() - 文字列を小文字にする strtoupper() - 文字列を大文字にする ucwords() - 文字列の各単語の最初の文字を大文字にする 他のマニ ...
https://man.mtool.work/php/8.3/function.lcfirst.html
usort — ユーザー定義の比較関数を使用して、配列を値でソートする | PHP 8.3 7721
usort (PHP 4, PHP 5, PHP 7, PHP 8) usort — ユーザー定義の比較関数を使用して、配列を値でソートする 説明 function usort ( array &$array , callable $callback ): true 順序を決めるユーザー定義の比較関数により、 array をその値でソートします。 注意 ... $name ) { $this -> name = $name ; } /* これは、比較用のstaticメソッドです */ static function cmp_obj ( $a , $b ) { return strtolower ( $a -> name ) <=> strtolower ( $b -> name ); } } $a [] = new TestObj ( "c" ); $a [] = new TestObj ( "b" ); $a [] = new Te ...
https://man.mtool.work/php/8.3/function.usort.html
PREV 1 2 3 4 NEXT