« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 43 for recursive (0.002 sec.)
array_replace_recursive — 渡された配列の要素を再帰的に置き換える | PHP 8.3 13620
array_replace_recursive (PHP 5 >= 5.3.0, PHP 7, PHP 8) array_replace_recursive — 渡された配列の要素を再帰的に置き換える 説明 function array_replace_recursive ( array $array , array ...$replacements ): array array_replace_recursive() は、 ar ... ません。 置き換え用の配列が複数渡された場合は渡した順に処理を行い、 後から渡した配列の値のほうが優先されます。 array_replace_recursive() は再帰的な処理を行います。 配列を再帰的にたどり、内部の値に対しても同じ手順で処理します。 最初の配列の値がスカラーの場合 ... るか配列であるかにかかわらずそれで置き換えられます。 最初の配列の値と 2番目の配列 の値が両方配列である場合は、 array_replace_recursive() が対応する値を再帰的に処理します。 パラメータ array 要素を置き換えたい配列。 replacements 置き換えたい要素を含む配列。 戻 ... り値 配列を返します。 例 例1 array_replace_recursive() の例 <?php $base = array( 'citrus' => array( "orange" ), 'berries' => array( "blackberry" , "raspberry" )); $replacement ...
https://man.mtool.work/php/8.3/function.array-replace-recursive.html
array_merge_recursive — 一つ以上の配列を再帰的にマージする | PHP 8.3 11708
array_merge_recursive (PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8) array_merge_recursive — 一つ以上の配列を再帰的にマージする 説明 function array_merge_recursive ( array ...$arrays ): array array_merge_recursive() は、 一つ以上の配列の要素をマージ ... 、引数なしでも呼び出せるようになりました。 このバージョンより前では、少なくともひとつの引数が必須でした。 例 例1 array_merge_recursive() の例 <?php $ar1 = array( "color" => array( "favorite" => "red" ), 5 ); $ar2 = array( 10 , "color" => array( "favorite" = ... > "green" , "blue" )); $result = array_merge_recursive ( $ar1 , $ar2 ); print_r ( $result ); ?> 上の例の出力は以下となります。 Array ( [color] => Array ( [favorite] => Array ( [ ... ed [1] => green ) [0] => blue ) [0] => 5 [1] => 10 ) 参考 array_merge() - ひとつまたは複数の配列をマージする array_replace_recursive() - 渡された配列の要素を再帰的に置き換える 他のマニュアルの関連ページ Linux JM paste(1) Linux JM sdiff(1) Linux JM merge(1 ...
https://man.mtool.work/php/8.3/function.array-merge-recursive.html
array_walk_recursive — 配列の全ての要素に、ユーザー関数を再帰的に適用する | PHP... 11708
array_walk_recursive (PHP 5, PHP 7, PHP 8) array_walk_recursive — 配列の全ての要素に、ユーザー関数を再帰的に適用する 説明 function array_walk_recursive ( array | object &$array , callable $callback , mixed $arg = null ): true array 配列の各 ... 更履歴 バージョン 説明 8.2.0 戻り値の型が、 true になりました。これより前のバージョンでは、 bool でした。 例 例1 array_walk_recursive() の例 <?php $sweet = array( 'a' => 'apple' , 'b' => 'banana' ); $fruits = array( 'sweet' => $sweet , 'sour' => 'lemon' ); ... function test_print ( $item , $key ) { echo " $key holds $item \n" ; } array_walk_recursive ( $fruits , 'test_print' ); ?> 上の例の出力は以下となります。 a holds apple b holds banana sour holds lemon キー ' sweet ' ... でしょう。 array を要素として持つキーは関数に渡されません。 コールバックのパラメータをリファレンスとして渡せば、 array_walk_recursive() で値をその場で更新することもできます。 例2 値をその場で更新する <?php $sweet = [ 'a' => 'apple' , 'b' => 'banana' ]; $fr ...
https://man.mtool.work/php/8.3/function.array-walk-recursive.html
svn_revert — Revert changes to the working copy | PHP 8.3 10042
svn_revert (PECL svn >= 0.3.0) svn_revert — Revert changes to the working copy 説明 function svn_revert ( string $path , bool $recursive = false ): bool Revert any local changes to the path in a working copy. パラメータ path The path to the ... working repository. recursive Optionally make recursive changes. 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 svn_delete() - De ...
https://man.mtool.work/php/8.3/function.svn-revert.html
svn_commit — Sends changes from the local working copy to the repository | PHP ... 9425
svn_commit (PECL svn >= 0.1.0) svn_commit — Sends changes from the local working copy to the repository 説明 function svn_commit ( string $log , array $targets , bool $recursive = true ): array Commits changes made in the local working copy ... les enumerated in the targets array to the repository, with the log message log . Directories in the targets array will be recursively committed unless recursive is set to false . 注意 : This function does not have any parameters for specifying authentica ... す。呼び出しもとのスクリプトの作業ディレクトリを基準とするには、 realpath() あるいは dirname(__FILE__) を使用してください。 recursive Boolean flag to disable recursive committing of directories in the targets array. Default is true . 戻り値 Returns array i ...
https://man.mtool.work/php/8.3/function.svn-commit.html
count — 配列または Countable | PHP 8.3 9255
count (PHP 4, PHP 5, PHP 7, PHP 8) count — 配列または Countable オブジェクトに含まれるすべての要素の数を数える 説明 function count ( Countable | array $value , int $mode = COUNT_NORMAL ): int 配列の場合は、配列の全ての要素を数えます。 Count ... e::count() の戻り値を返します。 パラメータ value 配列あるいは Countable オブジェクト。 mode オプションの mode 引数が COUNT_RECURSIVE (または 1) にセットされた場合、 count() は再帰的に配列をカウントします。 これは多次元配列の全ての要素をカウントするといった ... が返されていました。 ただし、 value が null の場合、 0 が返されていました。 エラー / 例外 mode が COUNT_NORMAL でも COUNT_RECURSIVE でもない場合、 ValueError がスローされます。 変更履歴 バージョン 説明 8.0.0 mode が COUNT_NORMAL でも COUNT_RECURSIVE でも ... $food = array( 'fruits' => array( 'orange' , 'banana' , 'apple' ), 'veggie' => array( 'carrot' , 'collard' , 'pea' )); // recursive count var_dump ( count ( $food , COUNT_RECURSIVE )); // normal count var_dump ( count ( $food )); ?> 上の例の出力は以下とな ...
https://man.mtool.work/php/8.3/function.count.html
mkdir — ディレクトリを作る | PHP 8.3 8993
mkdir (PHP 4, PHP 5, PHP 7, PHP 8) mkdir — ディレクトリを作る 説明 function mkdir ( string $directory , int $permissions = 0777 , bool $recursive = false , ? resource $context = null ): bool directory で指定したディレクトリを作成します。 パ ... 要があります。 また permissions は、 現在設定されている umask の影響も受けます。 umask を変更するには umask() を使用します。 recursive true を指定すると、 directory で指定されたディレクトリの、 全ての親ディレクトリも同じパーミッションで作成されます。 contex ... は E_WARNING レベルのエラーが発生します。 例 例1 mkdir() の例 <?php mkdir ( "/path/to/my/dir" , 0700 ); ?> 例2 mkdir() での recursive パラメータの使用例 <?php // 作りたいディレクトリ構造 $structure = './depth1/depth2/depth3/' ; // 入れ子構造を作るには、$re ...
https://man.mtool.work/php/8.3/function.mkdir.html
ssh2_sftp_mkdir — ディレクトリを作成する | PHP 8.3 8900
ssh2_sftp_mkdir (PECL ssh2 >= 0.9.0) ssh2_sftp_mkdir — ディレクトリを作成する 説明 function ssh2_sftp_mkdir ( resource $sftp , string $dirname , int $mode = 0777 , bool $recursive = false ): bool リモートファイルサーバーに mode で指定された ... ディレクトリへのパス。 mode 新しいディレクトリのパーミッション。 実際のパーミッションの値は、現在の umask の影響を受けます。 recursive もし recursive が true の場合、 dirname に必要とされる全ての親ディレクトリは自動的に作成されます。 戻り値 成功した場合に t ...
https://man.mtool.work/php/8.3/function.ssh2-sftp-mkdir.html
SimpleXMLIterator クラス | PHP 8.3 8021
SimpleXMLIterator クラス (PHP 5, PHP 7, PHP 8) はじめに SimpleXMLIterator は、 SimpleXMLElement オブジェクトのすべてのノードに対する再帰的な反復処理を提供します。 クラス概要 class SimpleXMLIterator extends SimpleXMLElement { /* 継承したメソ ... public function SimpleXMLElement::current (): SimpleXMLElement public function SimpleXMLElement::getDocNamespaces ( bool $recursive = false , bool $fromRoot = true ): array | false public function SimpleXMLElement::getName (): string public function Simp ... leXMLElement::getNamespaces ( bool $recursive = false ): array public function SimpleXMLElement::getChildren (): ? SimpleXMLElement public function SimpleXMLElement::ha ...
https://man.mtool.work/php/8.3/class.simplexmliterator.html
SimpleXMLElement::getNamespaces — ドキュメントで使用している名前空間を返す | PH... 8021
SimpleXMLElement::getNamespaces (PHP 5 >= 5.1.2, PHP 7, PHP 8) SimpleXMLElement::getNamespaces — ドキュメントで使用している名前空間を返す 説明 public function SimpleXMLElement::getNamespaces ( bool $recursive = false ): array ドキュメントで ... 使用している名前空間を返します。 パラメータ recursive 指定されている場合は、親ノードおよび子ノードで使用している全ての名前空間を返します。 されていない場合は、ルートノードで使用 ...
https://man.mtool.work/php/8.3/simplexmlelement.getnamespaces.html
PREV 1 2 3 4 5 NEXT