« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 9 of about 9 for choice (0.006 sec.)
preg_match — 正規表現によるマッチングを行う | PHP 8.3 12744
preg_match (PHP 4, PHP 5, PHP 7, PHP 8) preg_match — 正規表現によるマッチングを行う 説明 function preg_match ( string $pattern , string $subject , array &$matches = null , int $flags = 0 , int $offset = 0 ): int | false pattern で指定した正 ... ンのデリミタの後の "i" は、大小文字を区別しない検索を示す if ( preg_match ( "/php/i" , "PHP is the web scripting language of choice." )) { echo "A match was found." ; } else { echo "A match was not found." ; } ?> 例2 単語 "web" を探す <?php /* パターン内 ... " や "cobweb" のような単語の一部にはマッチしない */ if ( preg_match ( "/\bweb\b/i" , "PHP is the web scripting language of choice." )) { echo "A match was found." ; } else { echo "A match was not found." ; } echo "\n" ; if ( preg_match ( "/\bweb\b/i" , ... "PHP is the website scripting language of choice." )) { echo "A match was found." ; } else { echo "A match was not found." ; } ?> 例3 URL からドメイン名を得る <?php // URL ...
https://man.mtool.work/php/8.3/function.preg-match.html
IntlChar::charFromName — 名前で Unicode 文字を探し、コードポイントの値を返す | ... 9670
IntlChar::charFromName (PHP 7, PHP 8) IntlChar::charFromName — 名前で Unicode 文字を探し、コードポイントの値を返す 説明 public static function IntlChar::charFromName ( string $name , int $type = IntlChar::UNICODE_CHAR_NAME ): ? int 名前で U ... AME (デフォルト) IntlChar::UNICODE_10_CHAR_NAME IntlChar::EXTENDED_CHAR_NAME IntlChar::CHAR_NAME_ALIAS IntlChar::CHAR_NAME_CHOICE_COUNT 戻り値 指定された名前に対応するコードポイントの値を(数値で)返します。 コードポイントが存在しない場合は null を返しま ...
https://man.mtool.work/php/8.3/intlchar.charfromname.html
IntlChar::charName — Unicode 文字の名前を取得する | PHP 8.3 9670
IntlChar::charName (PHP 7, PHP 8) IntlChar::charName — Unicode 文字の名前を取得する 説明 public static function IntlChar::charName ( int | string $codepoint , int $type = IntlChar::UNICODE_CHAR_NAME ): ? string Unicode 文字の名前を取得します ... AME (デフォルト) IntlChar::UNICODE_10_CHAR_NAME IntlChar::EXTENDED_CHAR_NAME IntlChar::CHAR_NAME_ALIAS IntlChar::CHAR_NAME_CHOICE_COUNT 戻り値 対応する名前を返します。 その文字に対応する名前がない場合は、空文字列を返します。 コードポイントが存在しない場 ...
https://man.mtool.work/php/8.3/intlchar.charname.html
IntlChar クラス | PHP 8.3 9041
IntlChar クラス (PHP 7, PHP 8) はじめに IntlChar クラスは、 Unicode 文字に関する情報にアクセスするための、 たくさんの便利メソッドを提供しています。 このクラスのメソッドと定数は、 依存している ICU ライブラリで使われている名前や振る舞いにとて ... UNICODE_10_CHAR_NAME ; public const int EXTENDED_CHAR_NAME ; public const int CHAR_NAME_ALIAS ; public const int CHAR_NAME_CHOICE_COUNT ; public const int SHORT_PROPERTY_NAME ; public const int LONG_PROPERTY_NAME ; public const int PROPERTY_NAME_CHOICE ... int IntlChar::UNICODE_10_CHAR_NAME int IntlChar::EXTENDED_CHAR_NAME int IntlChar::CHAR_NAME_ALIAS int IntlChar::CHAR_NAME_CHOICE_COUNT int IntlChar::SHORT_PROPERTY_NAME int IntlChar::LONG_PROPERTY_NAME int IntlChar::PROPERTY_NAME_CHOICE_COUNT int Intl ...
https://man.mtool.work/php/8.3/class.intlchar.html
IntlChar::enumCharNames — 指定された範囲の全てのUnicode文字を走査する | PHP 8.3 9041
IntlChar::enumCharNames (PHP 7, PHP 8) IntlChar::enumCharNames — 指定された範囲の全てのUnicode文字を走査する 説明 public static function IntlChar::enumCharNames ( int | string $start , int | string $end , callable $callback , int $type = In ... 名前それぞれについて、この関数がコールされます。 以下の3つの引数が渡されます: int $codepoint - コードポイントの数値 int $nameChoice - 以下に示す type と同じ値 string $name - 文字の名前 type どの種類の名前を走査するかを選びます。以下の定数が使えます: Intl ... AME (デフォルト) IntlChar::UNICODE_10_CHAR_NAME IntlChar::EXTENDED_CHAR_NAME IntlChar::CHAR_NAME_ALIAS IntlChar::CHAR_NAME_CHOICE_COUNT 戻り値 成功した場合に true を、失敗した場合に false を返します。 変更履歴 バージョン 説明 8.3.0 この関数は、失敗時に ... ンプルの範囲に入るコードポイントを走査する例 <?php IntlChar :: enumCharNames ( 0x2600 , 0x2610 , function( $codepoint , $nameChoice , $name ) { printf ( "U+%04x %s\n" , $codepoint , $name ); }); ?> 上の例の出力は以下となります。 U+2600 BLACK SUN WITH RAY ...
https://man.mtool.work/php/8.3/intlchar.enumcharnames.html
MessageFormatter クラス | PHP 8.3 8430
MessageFormatter クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに MessageFormatter は、言語に依存しない連結されたメッセージを作成するための具象クラスです。 このクラスのメソッドを使用して、 エンドユーザー向けのすべてのメッセ ... $pattern ): bool } 参考 » ICU formatting documentation » ICU message formatting description » ICU message formatters » ICU choice formatters 目次 MessageFormatter::create — 新しいメッセージフォーマッタを作成する MessageFormatter::format — メッセージをフ ...
https://man.mtool.work/php/8.3/class.messageformatter.html
EventHttp::__construct — Constructs EventHttp object (the HTTP server) | PHP 8.... 8430
EventHttp::__construct (PECL event >= 1.2.6-beta) EventHttp::__construct — Constructs EventHttp object (the HTTP server) 説明 public function EventHttp::__construct ( EventBase $base , EventSslContext $ctx = null ) Constructs the HTTP serve ... port ( ctx ) added. 例 例1 Simple HTTP server <?php /* * Simple HTTP server. * * To test it: * 1) Run it on a port of your choice, e.g.: * $ php examples/http.php 8010 * 2) In another terminal connect to some address on this port * and make GET or POST ...
https://man.mtool.work/php/8.3/eventhttp.construct.html
EventHttp::setCallback — Sets a callback for specified URI | PHP 8.3 8430
EventHttp::setCallback (PECL event >= 1.4.0-beta) EventHttp::setCallback — Sets a callback for specified URI 説明 public function EventHttp::setCallback ( string $path , string $cb , string $arg = ? ): void Sets a callback for specified URI ... ます。 例 例1 EventHttp::setCallback() example <?php /* * Simple HTTP server. * * To test it: * 1) Run it on a port of your choice, e.g.: * $ php examples/http.php 8010 * 2) In another terminal connect to some address on this port * and make GET or POST ...
https://man.mtool.work/php/8.3/eventhttp.setcallback.html
例 | PHP 8.3 5356
例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev -> input -> remove ... (); /* Base }}} */ ?> 例8 Simple HTTP server <?php /* * Simple HTTP server. * * To test it: * 1) Run it on a port of your choice, e.g.: * $ php examples/http.php 8010 * 2) In another terminal connect to some address on this port * and make GET or POST ...
https://man.mtool.work/php/8.3/event.examples.html
PREV 1 NEXT