Results of 1 - 10 of about 72 for Lazy (0.003 sec.)
- 指定された部分文字列が、文字列に含まれるかを調べる 14645
- « sscanf str_decrement » PHP Manual String 関数 指定された部分文字列が、文字列に含まれるかを調べる 検索 str_contains (PHP 8) str_contains — 指定された部分文字列が、文字列に含まれるかを調べる 説明 function str_contains ( string $haystack , s
... となります。 Checking the existence of the empty string will always return true 例2 大文字小文字の区別 <?php $string = 'The lazy fox jumped over the fence' ; if ( str_contains ( $string , 'lazy' )) { echo "The string 'lazy' was found in the string\n" ... ; } if ( str_contains ( $string , 'Lazy' )) { echo 'The string "Lazy" was found in the string' ; } else { echo '"Lazy" was not found because the case does not mat ... ch' ; } ?> 上の例の出力は以下となります。 The string 'lazy' was found in the string "Lazy" was not found because the case does not match 注意 注意 : この関数はバイナリデータに対応し ...
-
https://man.mtool.work/php/8.3/function.str-contains.html
- 指定された部分文字列が、文字列に含まれるかを調べる 14645
- « sscanf str_decrement » PHP Manual String 関数 指定された部分文字列が、文字列に含まれるかを調べる 検索 str_contains (PHP 8) str_contains — 指定された部分文字列が、文字列に含まれるかを調べる 説明 function str_contains ( string $haystack , s
... となります。 Checking the existence of the empty string will always return true 例2 大文字小文字の区別 <?php $string = 'The lazy fox jumped over the fence' ; if ( str_contains ( $string , 'lazy' )) { echo "The string 'lazy' was found in the string\n" ... ; } if ( str_contains ( $string , 'Lazy' )) { echo 'The string "Lazy" was found in the string' ; } else { echo '"Lazy" was not found because the case does not mat ... ch' ; } ?> 上の例の出力は以下となります。 The string 'lazy' was found in the string "Lazy" was not found because the case does not match 注意 注意 : この関数はバイナリデータに対応し ...
-
https://man.mtool.work/php/8.3/function.str-contains.html
- 正規表現検索および置換を行う 8380
- « preg_quote preg_replace_callback » PHP Manual PCRE 関数 正規表現検索および置換を行う 検索 preg_replace (PHP 4, PHP 5, PHP 7, PHP 8) preg_replace — 正規表現検索および置換を行う 説明 function preg_replace ( string | array $pattern , string
... 出力は以下となります。 April1,2003 例2 preg_replace() での添字配列の使用 <?php $string = 'The quick brown fox jumps over the lazy dog.' ; $patterns = array(); $patterns [ 0 ] = '/quick/' ; $patterns [ 1 ] = '/brown/' ; $patterns [ 2 ] = '/fox/' ; $repl ... preg_replace ( $patterns , $replacements , $string ); ?> 上の例の出力は以下となります。 The bear black slow jumps over the lazy dog. pattern と replacement を ksort すると、所望のものが得られます。 <?php $string = 'The quick brown fox jumps over the ... preg_replace ( $patterns , $replacements , $string ); ?> 上の例の出力は以下となります。 The slow black bear jumps over the lazy dog. 例3 複数値の置換 <?php $patterns = array ( '/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/' , '/^\s*{(\w+)}\s*=/' ); $replace = ...
-
https://man.mtool.work/php/8.3/function.preg-replace.html
- 指定した文字数で文字列を分割する 8380
- « vsprintf 変更履歴 » PHP Manual String 関数 指定した文字数で文字列を分割する 検索 wordwrap (PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8) wordwrap — 指定した文字数で文字列を分割する 説明 function wordwrap ( string $string , int $width = 75 , string
... は、 E_WARNING が発生し、 false を返していました。 例 例1 wordwrap() の例 <?php $text = "The quick brown fox jumped over the lazy dog." ; $newtext = wordwrap ( $text , 20 , "<br />\n" ); echo $newtext ; ?> 上の例の出力は以下となります。 The quick brown ... fox<br /> jumped over the lazy<br /> dog. 例2 wordwrap() の例 <?php $text = "A very long woooooooooooord." ; $newtext = wordwrap ( $text , 8 , "\n" , tru ... に分割する 関連キーワード: 分割 wordwrap long text newtext 文字数 width break words 単語 履歴 ラップ quick brown jumped over lazy woooooooooooooooooord something 改行 vsprintf スペース ValueError woooooooooooord wooooooo ...
-
https://man.mtool.work/php/8.3/function.wordwrap.html
- ハッシュコンテキストをコピーする 8184
- « hash_algos hash_equals » PHP Manual Hash 関数 ハッシュコンテキストをコピーする 検索 hash_copy (PHP 5 >= 5.3.0, PHP 7, PHP 8) hash_copy — ハッシュコンテキストをコピーする 説明 function hash_copy ( HashContext $context ): HashContext パラメ
... copy_context = hash_copy ( $context ); echo hash_final ( $context ), "\n" ; hash_update ( $copy_context , "jumped over the lazy dog." ); echo hash_final ( $copy_context ), "\n" ; ?> 上の例の出力は以下となります。 b29d66e56ed90cce9b0165c43fedec612b60a ... xt copy コンテキスト ハッシュ コピー HashContext init update final algos equals Hash 履歴 リソース quick brown jumped over lazy fedec ...
-
https://man.mtool.work/php/8.3/function.hash-copy.html
- 段階的なハッシュコンテキストを初期化する 7988
- « hash_hmac_file hash_pbkdf2 » PHP Manual Hash 関数 段階的なハッシュコンテキストを初期化する 検索 hash_init (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL hash >= 1.1) hash_init — 段階的なハッシュコンテキストを初期化する 説明 function hash_init ( stri
... を返すようになりました。 例 例1 段階的なハッシュの例 <?php $hash = hash ( 'sha256' , 'The quick brown fox jumped over the lazy dog.' ); $ctx = hash_init ( 'sha256' ); hash_update ( $ctx , 'The quick brown fox ' ); hash_update ( $ctx , 'jumped over t ... he lazy dog.' ); $incremental_hash = hash_final ( $ctx ); echo $incremental_hash , PHP_EOL ; var_dump ( $hash === $incremental_has ... ptions アルゴリズム 暗号 初期化 flags サポート final ValueError 投入 HashContext algos stream 不明 quick brown jumped over lazy ...
-
https://man.mtool.work/php/8.3/function.hash-init.html
- 正規表現検索および置換を行う 7890
- « preg_quote preg_replace_callback » PHP Manual PCRE 関数 正規表現検索および置換を行う 検索 preg_replace (PHP 4, PHP 5, PHP 7, PHP 8) preg_replace — 正規表現検索および置換を行う 説明 function preg_replace ( string | array $pattern , string
... 出力は以下となります。 April1,2003 例2 preg_replace() での添字配列の使用 <?php $string = 'The quick brown fox jumps over the lazy dog.' ; $patterns = array(); $patterns [ 0 ] = '/quick/' ; $patterns [ 1 ] = '/brown/' ; $patterns [ 2 ] = '/fox/' ; $repl ... preg_replace ( $patterns , $replacements , $string ); ?> 上の例の出力は以下となります。 The bear black slow jumps over the lazy dog. pattern と replacement を ksort すると、所望のものが得られます。 <?php $string = 'The quick brown fox jumps over the ... preg_replace ( $patterns , $replacements , $string ); ?> 上の例の出力は以下となります。 The slow black bear jumps over the lazy dog. 例3 複数値の置換 <?php $patterns = array ( '/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/' , '/^\s*{(\w+)}\s*=/' ); $replace = ...
-
https://man.mtool.work/php/8.3/function.preg-replace.html
- 結果セットから次の行を取得する 7694
- « PDOStatement::execute PDOStatement::fetchAll » PHP Manual PDOStatement 結果セットから次の行を取得する 検索 PDOStatement::fetch (PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.1.0) PDOStatement::fetch — 結果セットから次の行を取得する 説明 pub
... セットのカラムがクラス内の名前付けされたプロパティに マッピングされている要求された既存インスタンスを更新します。 PDO::FETCH_LAZY : PDO::FETCH_BOTH と PDO::FETCH_OBJ の 組合せで、アクセスされるオブジェクトプロパティ名を作成する PDORow オブジェクトを返し ... mn name and number\n" ; $result = $sth -> fetch ( PDO :: FETCH_BOTH ); print_r ( $result ); print "\n" ; print "PDO::FETCH_LAZY: " ; print "Return next row as a PDORow object with column names as properties\n" ; $result = $sth -> fetch ( PDO :: FETCH ... _LAZY ); print_r ( $result ); print "\n" ; print "PDO::FETCH_OBJ: " ; print "Return next row as an anonymous object with column ...
-
https://man.mtool.work/php/8.3/pdostatement.fetch.html
- 結果セットから次の行を取得する 7694
- « PDOStatement::execute PDOStatement::fetchAll » PHP Manual PDOStatement 結果セットから次の行を取得する 検索 PDOStatement::fetch (PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.1.0) PDOStatement::fetch — 結果セットから次の行を取得する 説明 pub
... セットのカラムがクラス内の名前付けされたプロパティに マッピングされている要求された既存インスタンスを更新します。 PDO::FETCH_LAZY : PDO::FETCH_BOTH と PDO::FETCH_OBJ の 組合せで、アクセスされるオブジェクトプロパティ名を作成する PDORow オブジェクトを返し ... mn name and number\n" ; $result = $sth -> fetch ( PDO :: FETCH_BOTH ); print_r ( $result ); print "\n" ; print "PDO::FETCH_LAZY: " ; print "Return next row as a PDORow object with column names as properties\n" ; $result = $sth -> fetch ( PDO :: FETCH ... _LAZY ); print_r ( $result ); print "\n" ; print "PDO::FETCH_OBJ: " ; print "Return next row as an anonymous object with column ...
-
https://man.mtool.work/php/8.3/pdostatement.fetch.html
- レイジーオブジェクトを強制的に初期化する 7694
- « ReflectionClass::implementsInterface ReflectionClass::inNamespace » PHP Manual ReflectionClass レイジーオブジェクトを強制的に初期化する 検索 ReflectionClass::initializeLazyObject (PHP 8 >= 8.4.0) ReflectionClass::initializeLazyObject — レ
... イジーオブジェクトを強制的に初期化する 説明 public function ReflectionClass::initializeLazyObject ( object $object ): object 指定された object を強制的に初期化します。この メソッドは、オブジェクトがレイジーでないか ... tion __construct (public int $prop ) { } } $reflector = new ReflectionClass ( Example ::class); $object = $reflector -> newLazyGhost (function ( $object ) { echo "Initializer called\n" ; $object -> __construct ( 1 ); }); var_dump ( $object ); $reflec ... tor -> initializeLazyObject ( $object ); var_dump ( $object ); ?> 上の例の出力は以下となります。 lazy ghost object(Example)#3 (0) { ["prop"]=> u ...
-
https://man.mtool.work/php/8.3/reflectionclass.initializelazyobject.html