« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 196 for Apple (0.002 sec.)
メソッドの配列を取得する 9019
« ReflectionClass::getMethod ReflectionClass::getModifiers » PHP Manual ReflectionClass メソッドの配列を取得する 検索 ReflectionClass::getMethods (PHP 5, PHP 7, PHP 8) ReflectionClass::getMethods — メソッドの配列を取得する 説明 public funct ... バージョン 説明 7.2.0 filter は、nullable になりました。 例 例1 ReflectionClass::getMethods() の基本的な使用例 <?php class Apple { public function firstMethod () { } final protected function secondMethod () { } private static function thirdMethod () { ... } } $class = new ReflectionClass ( 'Apple' ); $methods = $class -> getMethods (); var_dump ( $methods ); ?> 上の例の出力は以下となります。 array(3) { [0]=> object(R ... eflectionMethod)#2 (2) { ["name"]=> string(11) "firstMethod" ["class"]=> string(5) "Apple" } [1]=> object(ReflectionMethod)#3 (2) { ["name"]=> string(12) "secondMethod" ["class"]=> string(5) "Apple" } [2]=> objec ...
https://man.mtool.work/php/8.3/reflectionclass.getmethods.html
メソッドの配列を取得する 8954
« ReflectionClass::getMethod ReflectionClass::getModifiers » PHP Manual ReflectionClass メソッドの配列を取得する 検索 ReflectionClass::getMethods (PHP 5, PHP 7, PHP 8) ReflectionClass::getMethods — メソッドの配列を取得する 説明 public funct ... バージョン 説明 7.2.0 filter は、nullable になりました。 例 例1 ReflectionClass::getMethods() の基本的な使用例 <?php class Apple { public function firstMethod () { } final protected function secondMethod () { } private static function thirdMethod () { ... } } $class = new ReflectionClass ( 'Apple' ); $methods = $class -> getMethods (); var_dump ( $methods ); ?> 上の例の出力は以下となります。 array(3) { [0]=> object(R ... eflectionMethod)#2 (2) { ["name"]=> string(11) "firstMethod" ["class"]=> string(5) "Apple" } [1]=> object(ReflectionMethod)#3 (2) { ["name"]=> string(12) "secondMethod" ["class"]=> string(5) "Apple" } [2]=> objec ...
https://man.mtool.work/php/8.3/reflectionclass.getmethods.html
アトリビュートを取得する 8889
« ReflectionProperty::export ReflectionProperty::getDeclaringClass » PHP Manual ReflectionProperty アトリビュートを取得する 検索 ReflectionProperty::getAttributes (PHP 8) ReflectionProperty::getAttributes — アトリビュートを取得する 説明 pub ... な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attributes = $property -> getAttributes (); prin ... ルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attributes = $property -> getAttributes ( 'Fruit ... ttribute ] class Fruit { } #[ Attribute ] class Red implements Color { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attributes = $property -> getAttributes ( 'Color ...
https://man.mtool.work/php/8.3/reflectionproperty.getattributes.html
アトリビュートを取得する 8889
« ReflectionClassConstant::export ReflectionClassConstant::getDeclaringClass » PHP Manual ReflectionClassConstant アトリビュートを取得する 検索 ReflectionClassConstant::getAttributes (PHP 8) ReflectionClassConstant::getAttributes — アトリビ ... 的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ); $attributes = $classConstant -> getAttr ... ィルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ); $attributes = $classConstant -> getAttr ... Attribute ] class Fruit { } #[ Attribute ] class Red implements Color { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ); $attributes = $classConstant -> getAttr ...
https://man.mtool.work/php/8.3/reflectionclassconstant.getattributes.html
アトリビュートを取得する 8889
« ReflectionProperty::export ReflectionProperty::getDeclaringClass » PHP Manual ReflectionProperty アトリビュートを取得する 検索 ReflectionProperty::getAttributes (PHP 8) ReflectionProperty::getAttributes — アトリビュートを取得する 説明 pub ... な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attributes = $property -> getAttributes (); prin ... ルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attributes = $property -> getAttributes ( 'Fruit ... ttribute ] class Fruit { } #[ Attribute ] class Red implements Color { } class Basket { #[ Fruit ] #[ Red ] public string $apple = 'apple' ; } $property = new ReflectionProperty ( 'Basket' , 'apple' ); $attributes = $property -> getAttributes ( 'Color ...
https://man.mtool.work/php/8.3/reflectionproperty.getattributes.html
ノードの XPath を取得する 8770
« DOMNode::getLineNo DOMNode::getRootNode » PHP Manual DOMNode ノードの XPath を取得する 検索 DOMNode::getNodePath (PHP 5 >= 5.2.0, PHP 7, PHP 8) DOMNode::getNodePath — ノードの XPath を取得する 説明 public function DOMNode::getNodePath (): ... // 新しい DOMDocument インスタンスを作ります $dom = new DOMDocument ; // XML を読み込みます $dom -> loadXML ( ' <fruits> <apples> <apple>braeburn</apple> <apple>granny smith</apple> </apples> <pears> <pear>conference</pear> </pears> </fruits> ' ); // ... tsByTagName ( '*' ) as $node ) { echo $node -> getNodePath () . "\n" ; } ?> 上の例の出力は以下となります。 /fruits /fruits/apples /fruits/apples/apple[1] /fruits/apples/apple[2] /fruits/pears /fruits/pears/pear 参考 DOMXPath 関連キーワード: fruits DOM ... Node XPath apple getNodePath apples ノード pears dom pear パラメータ DOMDocument node getLineNo Search getRootNode function string ロケーシ ...
https://man.mtool.work/php/8.3/domnode.getnodepath.html
ノードの XPath を取得する 8705
« DOMNode::getLineNo DOMNode::getRootNode » PHP Manual DOMNode ノードの XPath を取得する 検索 DOMNode::getNodePath (PHP 5 >= 5.2.0, PHP 7, PHP 8) DOMNode::getNodePath — ノードの XPath を取得する 説明 public function DOMNode::getNodePath (): ... // 新しい DOMDocument インスタンスを作ります $dom = new DOMDocument ; // XML を読み込みます $dom -> loadXML ( ' <fruits> <apples> <apple>braeburn</apple> <apple>granny smith</apple> </apples> <pears> <pear>conference</pear> </pears> </fruits> ' ); // ... tsByTagName ( '*' ) as $node ) { echo $node -> getNodePath () . "\n" ; } ?> 上の例の出力は以下となります。 /fruits /fruits/apples /fruits/apples/apple[1] /fruits/apples/apple[2] /fruits/pears /fruits/pears/pear 参考 DOMXPath 関連キーワード: fruits DOM ... Node XPath apple getNodePath apples ノード pears pear DOMDocument node getLineNo getRootNode ロケーションパス インスタンス loadXML braeburn ...
https://man.mtool.work/php/8.3/domnode.getnodepath.html
アトリビュートを取得する 8402
« ReflectionClassConstant::export ReflectionClassConstant::getDeclaringClass » PHP Manual ReflectionClassConstant アトリビュートを取得する 検索 ReflectionClassConstant::getAttributes (PHP 8) ReflectionClassConstant::getAttributes — アトリビ ... 的な使い方 <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ); $attributes = $classConstant -> getAttr ... ィルタする <?php #[ Attribute ] class Fruit { } #[ Attribute ] class Red { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ); $attributes = $classConstant -> getAttr ... Attribute ] class Fruit { } #[ Attribute ] class Red implements Color { } class Basket { #[ Fruit ] #[ Red ] public const APPLE = 'apple' ; } $classConstant = new ReflectionClassConstant ( 'Basket' , 'APPLE' ); $attributes = $classConstant -> getAttr ...
https://man.mtool.work/php/8.3/reflectionclassconstant.getattributes.html
指定された配列がリストかどうかをチェックする 8100
« array_intersect_ukey array_key_exists » PHP Manual 配列 関数 指定された配列がリストかどうかをチェックする 検索 array_is_list (PHP 8 >= 8.1.0) array_is_list — 指定された配列がリストかどうかをチェックする 説明 function array_is_list ( array ... lse を返します。 例 例1 array_is_list() example <?php var_dump ( array_is_list ([])); // true var_dump ( array_is_list ([ 'apple' , 2 , 3 ])); // true var_dump ( array_is_list ([ 0 => 'apple' , 'orange' ])); // true // 配列が 0 から始まっていない場合 ... var_dump ( array_is_list ([ 1 => 'apple' , 'orange' ])); // false // キーの順序が正しくない場合 var_dump ( array_is_list ([ 1 => 'apple' , 0 => 'orange' ])); // f ... alse // キーが数値でない場合 var_dump ( array_is_list ([ 0 => 'apple' , 'foo' => 'bar' ])); // false // Non-consecutive keys // 数値のキーが連続していない場合 var_dump ( array_is_list ([ 0 => ...
https://man.mtool.work/php/8.3/function.array-is-list.html
指定された配列がリストかどうかをチェックする 8100
« array_intersect_ukey array_key_exists » PHP Manual 配列 関数 指定された配列がリストかどうかをチェックする 検索 array_is_list (PHP 8 >= 8.1.0) array_is_list — 指定された配列がリストかどうかをチェックする 説明 function array_is_list ( array ... lse を返します。 例 例1 array_is_list() example <?php var_dump ( array_is_list ([])); // true var_dump ( array_is_list ([ 'apple' , 2 , 3 ])); // true var_dump ( array_is_list ([ 0 => 'apple' , 'orange' ])); // true // 配列が 0 から始まっていない場合 ... var_dump ( array_is_list ([ 1 => 'apple' , 'orange' ])); // false // キーの順序が正しくない場合 var_dump ( array_is_list ([ 1 => 'apple' , 0 => 'orange' ])); // f ... alse // キーが数値でない場合 var_dump ( array_is_list ([ 0 => 'apple' , 'foo' => 'bar' ])); // false // Non-consecutive keys // 数値のキーが連続していない場合 var_dump ( array_is_list ([ 0 => ...
https://man.mtool.work/php/8.3/function.array-is-list.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT