Results of 1 - 2 of about 2 for foobarbaz (0.049 sec.)
- preg_match_all — 繰り返し正規表現検索を行う | PHP 8.3 11228
- preg_match_all (PHP 4, PHP 5, PHP 7, PHP 8) preg_match_all — 繰り返し正規表現検索を行う 説明 function preg_match_all ( string $pattern , string $subject , array &$matches = null , int $flags = 0 , int $offset = 0 ): int | false subject を検
... フセット 1 に、 subject 内でのその文字列のオフセット からなる配列になります。 <?php preg_match_all ( '/(foo)(bar)(baz)/' , 'foobarbaz' , $matches , PREG_OFFSET_CAPTURE ); print_r ( $matches ); ?> 上の例の出力は以下となります。 Array ( [0] => Array ( [0] => ... Array ( [0] => foobarbaz [1] => 0 ) ) [1] => Array ( [0] => Array ( [0] => foo [1] => 0 ) ) [2] => Array ( [0] => Array ( [0] => bar [1] => 3 ) ) [ ...
-
https://man.mtool.work/php/8.3/function.preg-match-all.html
- preg_match — 正規表現によるマッチングを行う | PHP 8.3 7485
- 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 で指定した正
... オフセット 1 に、 subject 内でのその文字列のオフセット からなる配列になります。 <?php preg_match ( '/(foo)(bar)(baz)/' , 'foobarbaz' , $matches , PREG_OFFSET_CAPTURE ); print_r ( $matches ); ?> 上の例の出力は以下となります。 Array ( [0] => Array ( [0] => ... foobarbaz [1] => 0 ) [1] => Array ( [0] => foo [1] => 0 ) [2] => Array ( [0] => bar [1] => 3 ) [3] => Array ( [0] => baz [1] => 6 ) ...
-
https://man.mtool.work/php/8.3/function.preg-match.html
PREV
1
NEXT