Results of 1 - 10 of about 102 for fruit (0.002 sec.)
- ノードを文字列に正規化する 10391
- « DOMNode::appendChild DOMNode::C14NFile » PHP Manual DOMNode ノードを文字列に正規化する 検索 DOMNode::C14N (PHP 5 >= 5.2.0, PHP 7, PHP 8) DOMNode::C14N — ノードを文字列に正規化する 説明 public function DOMNode::C14N ( bool $exclusive = fal
... $dom -> loadXML (<<<XML <root xmlns:food="urn:food"> <!-- redundant namespace declaration will be canonicalized --> <food:fruit xmlns:food="urn:food">Apple</food:fruit> <food:fruit>Orange</food:fruit> <food:fruit>Pear</food:fruit> <!-- vegetables her ... e --> <food:vegetable>Lettuce</food:vegetable> </root> XML); echo $dom -> C14N ( true , false , [ "query" => ".//f:fruit|.//f:fruit/text()" , "namespaces" => [ "f" => "urn:food" ], ]); ?> 上の例の出力は以下となります。 <food:fruit>Apple</food: ... fruit><food:fruit>Orange</food:fruit><food:fruit>Pear</food:fruit> 参考 DOMNode::C14NFile() - ノードをファイルに正規化する 関連キーワード: f ...
-
https://man.mtool.work/php/8.3/domnode.c14n.html
- ノードを文字列に正規化する 10391
- « DOMNode::appendChild DOMNode::C14NFile » PHP Manual DOMNode ノードを文字列に正規化する 検索 DOMNode::C14N (PHP 5 >= 5.2.0, PHP 7, PHP 8) DOMNode::C14N — ノードを文字列に正規化する 説明 public function DOMNode::C14N ( bool $exclusive = fal
... $dom -> loadXML (<<<XML <root xmlns:food="urn:food"> <!-- redundant namespace declaration will be canonicalized --> <food:fruit xmlns:food="urn:food">Apple</food:fruit> <food:fruit>Orange</food:fruit> <food:fruit>Pear</food:fruit> <!-- vegetables her ... e --> <food:vegetable>Lettuce</food:vegetable> </root> XML); echo $dom -> C14N ( true , false , [ "query" => ".//f:fruit|.//f:fruit/text()" , "namespaces" => [ "f" => "urn:food" ], ]); ?> 上の例の出力は以下となります。 <food:fruit>Apple</food: ... fruit><food:fruit>Orange</food:fruit><food:fruit>Pear</food:fruit> 参考 DOMNode::C14NFile() - ノードをファイルに正規化する 関連キーワード: f ...
-
https://man.mtool.work/php/8.3/domnode.c14n.html
- アトリビュートを取得する 9226
- « ReflectionFunctionAbstract::__clone ReflectionFunctionAbstract::getClosureCalledClass » PHP Manual ReflectionFunctionAbstract アトリビュートを取得する 検索 ReflectionFunctionAbstract::getAttributes (PHP 8) ReflectionFunctionAbstract::getA
... ReflectionAttribute オブジェクトの配列として返します。 例 例1 メソッドを使った、基本的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Factory { #[ Fruit ] #[ Red ] public function makeApple (): string { return 'apple' ... array_map (fn( $attribute ) => $attribute -> getName (), $attributes )); ?> 上の例の出力は以下となります。 Array ( [0] => Fruit [1] => Red ) 例2 関数を使った、基本的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } #[ Fruit ] ... array_map (fn( $attribute ) => $attribute -> getName (), $attributes )); ?> 上の例の出力は以下となります。 Array ( [0] => Fruit [1] => Red ) 例3 クラス名を使って結果をフィルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } #[ F ...
-
https://man.mtool.work/php/8.3/reflectionfunctionabstract.getattributes.html
- アトリビュートを取得する 9187
- « ReflectionFunctionAbstract::__clone ReflectionFunctionAbstract::getClosureCalledClass » PHP Manual ReflectionFunctionAbstract アトリビュートを取得する 検索 ReflectionFunctionAbstract::getAttributes (PHP 8) ReflectionFunctionAbstract::getA
... ReflectionAttribute オブジェクトの配列として返します。 例 例1 メソッドを使った、基本的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Factory { #[ Fruit ] #[ Red ] public function makeApple (): string { return 'apple' ... array_map (fn( $attribute ) => $attribute -> getName (), $attributes )); ?> 上の例の出力は以下となります。 Array ( [0] => Fruit [1] => Red ) 例2 関数を使った、基本的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } #[ Fruit ] ... array_map (fn( $attribute ) => $attribute -> getName (), $attributes )); ?> 上の例の出力は以下となります。 Array ( [0] => Fruit [1] => Red ) 例3 クラス名を使って結果をフィルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } #[ F ...
-
https://man.mtool.work/php/8.3/reflectionfunctionabstract.getattributes.html
- PHP の変数を、クエリで取得するカラムに関連づける 9058
- « oci_connect oci_error » PHP Manual OCI8 関数 PHP の変数を、クエリで取得するカラムに関連づける 検索 oci_define_by_name (PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0) oci_define_by_name — PHP の変数を、クエリで取得するカラムに関連づける 説明 fun
... ; ?> 例3 oci_define_by_name() での LOB カラムの使用 <?php /* 実行する前にテーブルを作ります CREATE TABLE mytab (id NUMBER, fruit CLOB); INSERT INTO mytab (id, fruit) values (1, 'apple'); INSERT INTO mytab (id, fruit) values (2, 'orange'); COMMIT; */ $ ... mytab' ); // 実行する前に定義しなければなりません oci_define_by_name ( $stid , 'ID' , $id ); oci_define_by_name ( $stid , 'FRUIT' , $fruit ); // $fruit will become a LOB descriptor oci_execute ( $stid ); while ( oci_fetch ( $stid )) { echo $id . " is ... " . $fruit -> load ( 100 ) . "<br>\n" ; } // 表示: // 1 is apple // 2 is orange $fruit -> free (); oci_free_statement ( $stid ); oci_ ...
-
https://man.mtool.work/php/8.3/function.oci-define-by-name.html
- PHP の変数を、クエリで取得するカラムに関連づける 9058
- « oci_connect oci_error » PHP Manual OCI8 関数 PHP の変数を、クエリで取得するカラムに関連づける 検索 oci_define_by_name (PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0) oci_define_by_name — PHP の変数を、クエリで取得するカラムに関連づける 説明 fun
... ; ?> 例3 oci_define_by_name() での LOB カラムの使用 <?php /* 実行する前にテーブルを作ります CREATE TABLE mytab (id NUMBER, fruit CLOB); INSERT INTO mytab (id, fruit) values (1, 'apple'); INSERT INTO mytab (id, fruit) values (2, 'orange'); COMMIT; */ $ ... mytab' ); // 実行する前に定義しなければなりません oci_define_by_name ( $stid , 'ID' , $id ); oci_define_by_name ( $stid , 'FRUIT' , $fruit ); // $fruit will become a LOB descriptor oci_execute ( $stid ); while ( oci_fetch ( $stid )) { echo $id . " is ... " . $fruit -> load ( 100 ) . "<br>\n" ; } // 表示: // 1 is apple // 2 is orange $fruit -> free (); oci_free_statement ( $stid ); oci_ ...
-
https://man.mtool.work/php/8.3/function.oci-define-by-name.html
- NoRewindIterator を作成する 8929
- « NoRewindIterator NoRewindIterator::current » PHP Manual NoRewindIterator NoRewindIterator を作成する 検索 NoRewindIterator::__construct (PHP 5 >= 5.1.0, PHP 7, PHP 8) NoRewindIterator::__construct — NoRewindIterator を作成する 説明 public
... r::__construct() の例 二番目のループは何も出力しません。 このイテレータは一度しか使えず、巻き戻しされないからです。 <?php $fruit = array( 'apple' , 'banana' , 'cranberry' ); $arr = new ArrayObject ( $fruit ); $it = new NoRewindIterator ( $arr -> getIt ... erator ()); echo "Fruit A:\n" ; foreach( $it as $item ) { echo $item . "\n" ; } echo "Fruit B:\n" ; foreach( $it as $item ) { echo $item . "\n" ; ... } ?> 上の例の出力は、 たとえば以下のようになります。 Fruit A: apple banana cranberry Fruit B: 参考 NoRewindIterator::valid() - イテレータの有効性を検証する 関連キーワード: NoRewindI ...
-
https://man.mtool.work/php/8.3/norewinditerator.construct.html
- NoRewindIterator を作成する 8929
- « NoRewindIterator NoRewindIterator::current » PHP Manual NoRewindIterator NoRewindIterator を作成する 検索 NoRewindIterator::__construct (PHP 5 >= 5.1.0, PHP 7, PHP 8) NoRewindIterator::__construct — NoRewindIterator を作成する 説明 public
... r::__construct() の例 二番目のループは何も出力しません。 このイテレータは一度しか使えず、巻き戻しされないからです。 <?php $fruit = array( 'apple' , 'banana' , 'cranberry' ); $arr = new ArrayObject ( $fruit ); $it = new NoRewindIterator ( $arr -> getIt ... erator ()); echo "Fruit A:\n" ; foreach( $it as $item ) { echo $item . "\n" ; } echo "Fruit B:\n" ; foreach( $it as $item ) { echo $item . "\n" ; ... } ?> 上の例の出力は、 たとえば以下のようになります。 Fruit A: apple banana cranberry Fruit B: 参考 NoRewindIterator::valid() - イテレータの有効性を検証する 関連キーワード: NoRewindI ...
-
https://man.mtool.work/php/8.3/norewinditerator.construct.html
- アトリビュートを取得する 8463
- « ReflectionClass::export ReflectionClass::getConstant » PHP Manual ReflectionClass アトリビュートを取得する 検索 ReflectionClass::getAttributes (PHP 8) ReflectionClass::getAttributes — アトリビュートを取得する 説明 public function Reflecti
... リビュートの配列を、 ReflectionAttribute オブジェクトの配列として返します。 例 例1 基本的な使用法 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } #[ Fruit ] #[ Red ] class Apple { } $class = new ReflectionClass ( 'Apple' ); $attributes ... array_map (fn( $attribute ) => $attribute -> getName (), $attributes )); ?> 上の例の出力は以下となります。 Array ( [0] => Fruit [1] => Red ) 例2 クラス名で結果をフィルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } #[ Fruit ] ... #[ Red ] class Apple { } $class = new ReflectionClass ( 'Apple' ); $attributes = $class -> getAttributes ( 'Fruit' ); print_r ( array_map (fn( $attribute ) => $attribute -> getName (), $attributes )); ?> 上の例の出力は以下となります。 A ...
-
https://man.mtool.work/php/8.3/reflectionclass.getattributes.html
- アトリビュートを取得する 8463
- « ReflectionClass::export ReflectionClass::getConstant » PHP Manual ReflectionClass アトリビュートを取得する 検索 ReflectionClass::getAttributes (PHP 8) ReflectionClass::getAttributes — アトリビュートを取得する 説明 public function Reflecti
... リビュートの配列を、 ReflectionAttribute オブジェクトの配列として返します。 例 例1 基本的な使用法 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } #[ Fruit ] #[ Red ] class Apple { } $class = new ReflectionClass ( 'Apple' ); $attributes ... array_map (fn( $attribute ) => $attribute -> getName (), $attributes )); ?> 上の例の出力は以下となります。 Array ( [0] => Fruit [1] => Red ) 例2 クラス名で結果をフィルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } #[ Fruit ] ... #[ Red ] class Apple { } $class = new ReflectionClass ( 'Apple' ); $attributes = $class -> getAttributes ( 'Fruit' ); print_r ( array_map (fn( $attribute ) => $attribute -> getName (), $attributes )); ?> 上の例の出力は以下となります。 A ...
-
https://man.mtool.work/php/8.3/reflectionclass.getattributes.html