Results of 1 - 10 of about 10 for sweet (0.002 sec.)
- 配列の全ての要素に、ユーザー関数を再帰的に適用する 12353
- « array_walk arsort » PHP Manual 配列 関数 配列の全ての要素に、ユーザー関数を再帰的に適用する 検索 array_walk_recursive (PHP 5, PHP 7, PHP 8) array_walk_recursive — 配列の全ての要素に、ユーザー関数を再帰的に適用する 説明 function array_walk
... 2.0 戻り値の型が、 true になりました。これより前のバージョンでは、 bool でした。 例 例1 array_walk_recursive() の例 <?php $sweet = array( 'a' => 'apple' , 'b' => 'banana' ); $fruits = array( 'sweet' => $sweet , 'sour' => 'lemon' ); function test_print ... cursive ( $fruits , 'test_print' ); ?> 上の例の出力は以下となります。 a holds apple b holds banana sour holds lemon キー ' sweet ' が表示されないことにお気づきでしょう。 array を要素として持つキーは関数に渡されません。 コールバックのパラメータをリファ ... レンスとして渡せば、 array_walk_recursive() で値をその場で更新することもできます。 例2 値をその場で更新する <?php $sweet = [ 'a' => 'apple' , 'b' => 'banana' ]; $fruits = [ 'sweet' => $sweet , 'sour' => 'lemon' ]; function test_update (& $item ...
-
https://man.mtool.work/php/8.3/function.array-walk-recursive.html
- 配列の全ての要素に、ユーザー関数を再帰的に適用する 12353
- « array_walk arsort » PHP Manual 配列 関数 配列の全ての要素に、ユーザー関数を再帰的に適用する 検索 array_walk_recursive (PHP 5, PHP 7, PHP 8) array_walk_recursive — 配列の全ての要素に、ユーザー関数を再帰的に適用する 説明 function array_walk
... 2.0 戻り値の型が、 true になりました。これより前のバージョンでは、 bool でした。 例 例1 array_walk_recursive() の例 <?php $sweet = array( 'a' => 'apple' , 'b' => 'banana' ); $fruits = array( 'sweet' => $sweet , 'sour' => 'lemon' ); function test_print ... cursive ( $fruits , 'test_print' ); ?> 上の例の出力は以下となります。 a holds apple b holds banana sour holds lemon キー ' sweet ' が表示されないことにお気づきでしょう。 array を要素として持つキーは関数に渡されません。 コールバックのパラメータをリファ ... レンスとして渡せば、 array_walk_recursive() で値をその場で更新することもできます。 例2 値をその場で更新する <?php $sweet = [ 'a' => 'apple' , 'b' => 'banana' ]; $fruits = [ 'sweet' => $sweet , 'sour' => 'lemon' ]; function test_update (& $item ...
-
https://man.mtool.work/php/8.3/function.array-walk-recursive.html
- ドキュメント に変換する 8938
- « XSLTProcessor::setSecurityPrefs XSLTProcessor::transformToUri » PHP Manual XSLTProcessor ドキュメント に変換する 検索 XSLTProcessor::transformToDoc (PHP 5, PHP 7, PHP 8) XSLTProcessor::transformToDoc — ドキュメント に変換する 説明 public
... ansformToDoc ( $xml )-> firstChild -> wholeText ); ?> 上の例の出力は以下となります。 Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! 例2 Dom\Document への変換 <?php $xml = Dom\XMLDocument :: createFromFile ( 'collection.xml' ); $xsl = Dom\X ... ansformToDoc ( $xml )-> firstChild -> wholeText ); ?> 上の例の出力は以下となります。 Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! 参考 XSLTProcessor::transformToUri() - URI に変換する XSLTProcessor::transformToXml() - XML に変換する 関連 ... transformToUri returnClass ソース 登録 load importStyleSheet ルール trim firstChild wholeText Welcome Nicolas Eliaszewicz sweet XMLDocument ...
-
https://man.mtool.work/php/8.3/xsltprocessor.transformtodoc.html
- XML に変換する 8938
- « XSLTProcessor::transformToUri GUI用の拡張モジュール » PHP Manual XSLTProcessor XML に変換する 検索 XSLTProcessor::transformToXml (PHP 5, PHP 7, PHP 8) XSLTProcessor::transformToXml — XML に変換する 説明 public function XSLTProcessor::tran
... ルを適用する echo $proc -> transformToXML ( $xml ); ?> 上の例の出力は以下となります。 Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! <h1>Fight for your mind</h1><h2>by Ben Harper - 1995</h2><hr> <h1>Electric Ladyland</h1><h2>by Jimi Hendrix ... ルを適用する echo $proc -> transformToXML ( $xml ); ?> 上の例の出力は以下となります。 Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! <h1>Fight for your mind</h1><h2>by Ben Harper - 1995</h2><hr> <h1>Electric Ladyland</h1><h2>by Jimi Hendrix ... transformToUri ソース Document transformToDoc 登録 load importStyleSheet ルール transformToXML Welcome Nicolas Eliaszewicz sweet Fight mind Harper Electric ...
-
https://man.mtool.work/php/8.3/xsltprocessor.transformtoxml.html
- ドキュメント に変換する 8205
- « XSLTProcessor::setSecurityPrefs XSLTProcessor::transformToUri » PHP Manual XSLTProcessor ドキュメント に変換する 検索 XSLTProcessor::transformToDoc (PHP 5, PHP 7, PHP 8) XSLTProcessor::transformToDoc — ドキュメント に変換する 説明 public
... ansformToDoc ( $xml )-> firstChild -> wholeText ); ?> 上の例の出力は以下となります。 Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! 例2 Dom\Document への変換 <?php $xml = Dom\XMLDocument :: createFromFile ( 'collection.xml' ); $xsl = Dom\X ... ansformToDoc ( $xml )-> firstChild -> wholeText ); ?> 上の例の出力は以下となります。 Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! 参考 XSLTProcessor::transformToUri() - URI に変換する XSLTProcessor::transformToXml() - XML に変換する 関連 ...
-
https://man.mtool.work/php/8.3/xsltprocessor.transformtodoc.html
- XML に変換する 8205
- « XSLTProcessor::transformToUri GUI用の拡張モジュール » PHP Manual XSLTProcessor XML に変換する 検索 XSLTProcessor::transformToXml (PHP 5, PHP 7, PHP 8) XSLTProcessor::transformToXml — XML に変換する 説明 public function XSLTProcessor::tran
... ルを適用する echo $proc -> transformToXML ( $xml ); ?> 上の例の出力は以下となります。 Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! <h1>Fight for your mind</h1><h2>by Ben Harper - 1995</h2><hr> <h1>Electric Ladyland</h1><h2>by Jimi Hendrix ... ルを適用する echo $proc -> transformToXML ( $xml ); ?> 上の例の出力は以下となります。 Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! <h1>Fight for your mind</h1><h2>by Ben Harper - 1995</h2><hr> <h1>Electric Ladyland</h1><h2>by Jimi Hendrix ...
-
https://man.mtool.work/php/8.3/xsltprocessor.transformtoxml.html
- collection.xml および collection.xsl ファイルの例 7758
- « 例 libxml のエラー処理関数によるエラー処理 » PHP Manual 例 collection.xml および collection.xsl ファイルの例 検索 collection.xml および collection.xsl ファイルの例 このリファレンスにある多くの例は、XML ファイルと XSL ファイルの両方が必要で
... l" encoding="iso-8859-1" indent="no"/> <xsl:template match="collection"> Hey! Welcome to <xsl:value-of select="$owner"/>'s sweet CD collection! <xsl:apply-templates/> </xsl:template> <xsl:template match="cd"> <h1><xsl:value-of select="title"/></h1> <h ...
-
https://man.mtool.work/php/8.3/xsl.examples-collection.html
- collection.xml および collection.xsl ファイルの例 7758
- « 例 libxml のエラー処理関数によるエラー処理 » PHP Manual 例 collection.xml および collection.xsl ファイルの例 検索 collection.xml および collection.xsl ファイルの例 このリファレンスにある多くの例は、XML ファイルと XSL ファイルの両方が必要で
... l" encoding="iso-8859-1" indent="no"/> <xsl:template match="collection"> Hey! Welcome to <xsl:value-of select="$owner"/>'s sweet CD collection! <xsl:apply-templates/> </xsl:template> <xsl:template match="cd"> <h1><xsl:value-of select="title"/></h1> <h ...
-
https://man.mtool.work/php/8.3/xsl.examples-collection.html
- 配列 7401
- « 数値形式の文字列 オブジェクト » PHP Manual 型 配列 検索 配列 全ての配列関数の一覧は、 配列関数 を参照ください。 PHP の配列は、実際には順番付けられたマップです。マップは型の一種で、 値 を キー に関連付けます。 この型は、さまざまな使い道にあ
... 能を示すため、 ここでいくつかの例を紹介します。 例23 多様な配列 <?php // これは、 $a = array( 'color' => 'red' , 'taste' => 'sweet' , 'shape' => 'round' , 'name' => 'apple' , 4 // キーは0になります ); $b = array( 'a' , 'b' , 'c' ); var_dump ( $a , $b ); ... // 完全にこれと同じです。 $a = array(); $a [ 'color' ] = 'red' ; $a [ 'taste' ] = 'sweet' ; $a [ 'shape' ] = 'round' ; $a [ 'name' ] = 'apple' ; $a [] = 4 ; // キーは0になります $b = array(); $b [] = 'a' ; $b [] ... = 'b' ; $b [] = 'c' ; // 上のコードを実行すると、$a は次のような配列 // array('color' => 'red', 'taste' => 'sweet', 'shape' => 'round', // 'name' => 'apple', 0 => 4) となり、$b は // array(0 => 'a', 1 => 'b', 2 => 'c') あるいは単に arra ...
-
https://man.mtool.work/php/8.3/language.types.array.html
- 配列 7401
- « 数値形式の文字列 オブジェクト » PHP Manual 型 配列 検索 配列 全ての配列関数の一覧は、 配列関数 を参照ください。 PHP の配列は、実際には順番付けられたマップです。マップは型の一種で、 値 を キー に関連付けます。 この型は、さまざまな使い道にあ
... 能を示すため、 ここでいくつかの例を紹介します。 例23 多様な配列 <?php // これは、 $a = array( 'color' => 'red' , 'taste' => 'sweet' , 'shape' => 'round' , 'name' => 'apple' , 4 // キーは0になります ); $b = array( 'a' , 'b' , 'c' ); var_dump ( $a , $b ); ... // 完全にこれと同じです。 $a = array(); $a [ 'color' ] = 'red' ; $a [ 'taste' ] = 'sweet' ; $a [ 'shape' ] = 'round' ; $a [ 'name' ] = 'apple' ; $a [] = 4 ; // キーは0になります $b = array(); $b [] = 'a' ; $b [] ... = 'b' ; $b [] = 'c' ; // 上のコードを実行すると、$a は次のような配列 // array('color' => 'red', 'taste' => 'sweet', 'shape' => 'round', // 'name' => 'apple', 0 => 4) となり、$b は // array(0 => 'a', 1 => 'b', 2 => 'c') あるいは単に arra ...
-
https://man.mtool.work/php/8.3/language.types.array.html
PREV
1
NEXT