« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 18 for food (0.003 sec.)
ノードを文字列に正規化する 12971
« 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 ... ノードをフィルタし、 正規化する高度なやり方を示します。 <?php $dom = new DOMDocument (); $dom -> loadXML (<<<XML <root xmlns:food="urn:food"> <!-- redundant namespace declaration will be canonicalized --> <food:fruit xmlns:food="urn:food">Apple</food:f ... ruit> <food:fruit>Orange</food:fruit> <food:fruit>Pear</food:fruit> <!-- vegetables here --> <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</f ...
https://man.mtool.work/php/8.3/domnode.c14n.html
ノードを文字列に正規化する 12971
« 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 ... ノードをフィルタし、 正規化する高度なやり方を示します。 <?php $dom = new DOMDocument (); $dom -> loadXML (<<<XML <root xmlns:food="urn:food"> <!-- redundant namespace declaration will be canonicalized --> <food:fruit xmlns:food="urn:food">Apple</food:f ... ruit> <food:fruit>Orange</food:fruit> <food:fruit>Pear</food:fruit> <!-- vegetables here --> <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</f ...
https://man.mtool.work/php/8.3/domnode.c14n.html
共変性と反変性 9780
« オブジェクトのシリアライズ レイジーオブジェクト » PHP Manual クラスとオブジェクト 共変性と反変性 検索 共変性と反変性 PHP 7.2.0 で、子クラスのメソッドのパラメータの型の制限を除く形で、反変性が一部サポートされました。 PHP 7.4.0 以降で、共変 ... 同等であるためです。 詳細は 移行ガイド を参照ください。 反変性 既に示した Animal , Cat および Dog クラスの例を引き続き使い、 Food と AnimalFood クラスを追加し、 Animal 抽象クラスに eat(AnimalFood $food) メソッドを追加してみましょう。 <?php class Food { ... } class AnimalFood extends Food {} abstract class Animal { protected string $name ; public function __construct ( string $name ) { $this -> n ... ame = $name ; } public function eat ( AnimalFood $food ) { echo $this -> name . " eats " . get_class ( $food ); } } 反変性 の振る舞いを見るため、 Dog クラスの eat メソッド ...
https://man.mtool.work/php/8.3/language.oop5.variance.html
共変性と反変性 9505
« オブジェクトのシリアライズ レイジーオブジェクト » PHP Manual クラスとオブジェクト 共変性と反変性 検索 共変性と反変性 PHP 7.2.0 で、子クラスのメソッドのパラメータの型の制限を除く形で、反変性が一部サポートされました。 PHP 7.4.0 以降で、共変 ... 同等であるためです。 詳細は 移行ガイド を参照ください。 反変性 既に示した Animal , Cat および Dog クラスの例を引き続き使い、 Food と AnimalFood クラスを追加し、 Animal 抽象クラスに eat(AnimalFood $food) メソッドを追加してみましょう。 <?php class Food { ... } class AnimalFood extends Food {} abstract class Animal { protected string $name ; public function __construct ( string $name ) { $this -> n ... ame = $name ; } public function eat ( AnimalFood $food ) { echo $this -> name . " eats " . get_class ( $food ); } } 反変性 の振る舞いを見るため、 Dog クラスの eat メソッド ...
https://man.mtool.work/php/8.3/language.oop5.variance.html
Schema のコンストラクタ 8407
« mysql_xdevapi\Schema Schema::createCollection » PHP Manual mysql_xdevapi\Schema Schema のコンストラクタ 検索 Schema::__construct (No version information available, might only be in Git) Schema::__construct — Schema のコンストラクタ 説明 p ... php $session = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $session -> sql ( "DROP DATABASE IF EXISTS food" )-> execute (); $session -> sql ( "CREATE DATABASE food" )-> execute (); $session -> sql ( "CREATE TABLE food.fruit(name ... text, rating text)" )-> execute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); print_r ( $schema -> gettables ()); print_r ( $schema -> getcollections ()); ... ( [trees] => mysql_xdevapi\Collection Object ( [name] => trees ) ) 関連キーワード: Schema mysql xdevapi session construct food schema コンストラクタ sql execute fruit name trees createCollection スキーマ パラメータ text print Array Object ...
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.construct.html
Schema のコンストラクタ 8338
« mysql_xdevapi\Schema Schema::createCollection » PHP Manual mysql_xdevapi\Schema Schema のコンストラクタ 検索 Schema::__construct (No version information available, might only be in Git) Schema::__construct — Schema のコンストラクタ 説明 p ... php $session = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $session -> sql ( "DROP DATABASE IF EXISTS food" )-> execute (); $session -> sql ( "CREATE DATABASE food" )-> execute (); $session -> sql ( "CREATE TABLE food.fruit(name ... text, rating text)" )-> execute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); print_r ( $schema -> gettables ()); print_r ( $schema -> getcollections ()); ... ( [trees] => mysql_xdevapi\Collection Object ( [name] => trees ) ) 関連キーワード: Schema mysql xdevapi session construct food schema コンストラクタ execute fruit trees createCollection スキーマ text print information available private データベース ...
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.construct.html
スキーマからコレクションを削除する 8287
« Schema::createCollection Schema::existsInDatabase » PHP Manual mysql_xdevapi\Schema スキーマからコレクションを削除する 検索 Schema::dropCollection (No version information available, might only be in Git) Schema::dropCollection — スキーマか ... php $session = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $session -> sql ( "DROP DATABASE IF EXISTS food" )-> execute (); $session -> sql ( "CREATE DATABASE food" )-> execute (); $session -> sql ( "CREATE TABLE food.fruit(name ... text, rating text)" )-> execute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); $schema -> dropCollection ( "trees" ); $schema -> createCollection ( "buildin ... devapi\Collection Object ( [name] => buildings ) ) 関連キーワード: Schema mysql xdevapi schema dropCollection name session food スキーマ コレクション createCollection sql execute fruit buildings collection text trees print Array ...
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.dropcollection.html
スキーマからコレクションを削除する 8287
« Schema::createCollection Schema::existsInDatabase » PHP Manual mysql_xdevapi\Schema スキーマからコレクションを削除する 検索 Schema::dropCollection (No version information available, might only be in Git) Schema::dropCollection — スキーマか ... php $session = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $session -> sql ( "DROP DATABASE IF EXISTS food" )-> execute (); $session -> sql ( "CREATE DATABASE food" )-> execute (); $session -> sql ( "CREATE TABLE food.fruit(name ... text, rating text)" )-> execute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); $schema -> dropCollection ( "trees" ); $schema -> createCollection ( "buildin ... sql_xdevapi\Collection Object ( [name] => buildings ) ) 関連キーワード: Schema mysql xdevapi schema dropCollection session food スキーマ コレクション createCollection execute fruit buildings collection text trees print existsInDatabase information av ...
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.dropcollection.html
データベースに存在するかをチェックする 8064
« Schema::dropCollection Schema::getCollection » PHP Manual mysql_xdevapi\Schema データベースに存在するかをチェックする 検索 Schema::existsInDatabase (No version information available, might only be in Git) Schema::existsInDatabase — データ ... php $session = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $session -> sql ( "DROP DATABASE IF EXISTS food" )-> execute (); $session -> sql ( "CREATE DATABASE food" )-> execute (); $session -> sql ( "CREATE TABLE food.fruit(name ... text, rating text)" )-> execute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); // ... $trees = $schema -> getCollection ( "trees" ); // ... // Is this colle ... Yes, the 'trees' collection is still present. 関連キーワード: Schema trees existsInDatabase session mysql xdevapi スキーマ food schema データベース チェック sql execute collection still getCollection オブジェクト テーブル コレクション パラメータ ...
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.existsindatabase.html
データベースに存在するかをチェックする 8064
« Schema::dropCollection Schema::getCollection » PHP Manual mysql_xdevapi\Schema データベースに存在するかをチェックする 検索 Schema::existsInDatabase (No version information available, might only be in Git) Schema::existsInDatabase — データ ... php $session = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $session -> sql ( "DROP DATABASE IF EXISTS food" )-> execute (); $session -> sql ( "CREATE DATABASE food" )-> execute (); $session -> sql ( "CREATE TABLE food.fruit(name ... text, rating text)" )-> execute (); $schema = $session -> getSchema ( "food" ); $schema -> createCollection ( "trees" ); // ... $trees = $schema -> getCollection ( "trees" ); // ... // Is this colle ... Yes, the 'trees' collection is still present. 関連キーワード: Schema trees existsInDatabase session mysql xdevapi スキーマ food schema データベース チェック execute collection still getCollection テーブル コレクション text present dropCollection info ...
https://man.mtool.work/php/8.3/mysql-xdevapi-schema.existsindatabase.html
PREV 1 2 NEXT