Results of 1 - 10 of about 62 for label (0.001 sec.)
- プリペアドステートメント | PHP 8.3 13351
- プリペアドステートメント MySQL データベースは、 プリペアドステートメントをサポートしています。 プリペアドステートメント、 またはパラメータ化したステートメントは、 同じステートメントを繰り返し、 高い効率で実行すると同時に、 SQLインジェクショ
... Non-prepared statement */ $mysqli -> query ( "DROP TABLE IF EXISTS test" ); $mysqli -> query ( "CREATE TABLE test(id INT, label TEXT)" ); /* Prepared statement, stage 1: prepare */ $stmt = $mysqli -> prepare ( "INSERT INTO test(id, label) VALUES (?, ... ?)" ); /* Prepared statement, stage 2: bind and execute */ $id = 1 ; $label = 'PHP' ; $stmt -> bind_param ( "is" , $id , $label ); // "is" means that $id is bound as an integer and $label as a strin ... Non-prepared statement */ $mysqli -> query ( "DROP TABLE IF EXISTS test" ); $mysqli -> query ( "CREATE TABLE test(id INT, label TEXT)" ); /* Prepared statement, stage 1: prepare */ $stmt = $mysqli -> prepare ( "INSERT INTO test(id, label) VALUES (?, ...
-
https://man.mtool.work/php/8.3/mysqli.quickstart.prepared-statements.html
- UI\Controls\Label::__construct — Construct a new Label | PHP 8.3 11747
- UI\Controls\Label::__construct (UI 0.9.9) UI\Controls\Label::__construct — Construct a new Label 説明 public function UI\Controls\Label::__construct ( string $text ) Shall construct a new Label パラメータ text The text for this label 他のマ
...
-
https://man.mtool.work/php/8.3/ui-controls-label.construct.html
- Label Control | PHP 8.3 10952
- Label Control (UI 0.9.9) はじめに A Label is a single line of text, meant to identify, for the user, some element of the interface. クラス概要 class UI\Controls\Label extends UI\Control { /* Constructor */ public function __construct ( stri
... : bool public function UI\Control::setParent ( UI\Control $parent ) public function UI\Control::show () } 目次 UI\Controls\Label::__construct — Construct a new Label UI\Controls\Label::getText — Get Text UI\Controls\Label::setText — Set Text 他のマニュ ...
-
https://man.mtool.work/php/8.3/class.ui-controls-label.html
- Serializable インターフェイス | PHP 8.3 9984
- Serializable インターフェイス (PHP 5 >= 5.1.0, PHP 7, PHP 8) はじめに 独自のシリアライズ用のインターフェイスです。 このインターフェイスを実装したクラスは __sleep() や __wakeup() をサポートしなくなります。 シリアライズが必要な場合には、自動的
... を委譲します。こうすることで、ひとつの表現で両方の仕組みをまかなえます。 <?php class Task implements Serializable { private $label ; public function __construct ( $label ) { $this -> label = $label ; } public function __serialize (): array { return [ 'l ... abel' => $this -> label ]; } public function __unserialize (array $data ): void { $this -> label = $data [ 'label' ]; } // PHP 7.4.0 以降はコールさ ... ta )); } } var_dump ( serialize (new Task ( 'deploy' ))); ?> 上の例の出力は以下となります。 string(40) "O:4:"Task":1:{s:5:"label";s:6:"deploy";}" PHP 7.4.0 より前のバージョンでは、同じコードがインターフェイス経由でシリアライズを行い、 string(47) "C:4: ...
-
https://man.mtool.work/php/8.3/class.serializable.html
- ステートメントの実行 | PHP 8.3 9926
- ステートメントの実行 ステートメントは、 mysqli::query() , mysqli::real_query() , mysqli::multi_query() を使って実行できます。 mysqli::query() がもっともよく使われますが、 ステートメントの実行と、 バッファリングされた結果セットの取得を一回の
... "password" , "database" ); $mysqli -> query ( "DROP TABLE IF EXISTS test" ); $mysqli -> query ( "CREATE TABLE test(id INT, label CHAR(1))" ); $mysqli -> query ( "INSERT INTO test(id, label) VALUES (1, 'a')" ); $result = $mysqli -> query ( "SELECT id, ... = 1" ); $row = $result -> fetch_assoc (); printf ( "id = %s (%s)\n" , $row [ 'id' ], gettype ( $row [ 'id' ])); printf ( "label = %s (%s)\n" , $row [ 'label' ], gettype ( $row [ 'label' ])); 上の例の出力は以下となります。 id = 1 (string) label = a (s ... "password" , "database" ); $mysqli -> query ( "DROP TABLE IF EXISTS test" ); $mysqli -> query ( "CREATE TABLE test(id INT, label CHAR(1))" ); $mysqli -> query ( "INSERT INTO test(id, label) VALUES (1, 'a')" ); $result = $mysqli -> query ( "SELECT id, ...
-
https://man.mtool.work/php/8.3/mysqli.quickstart.statements.html
- UI\Controls\Label::setText — Set Text | PHP 8.3 9695
- UI\Controls\Label::setText (UI 0.9.9) UI\Controls\Label::setText — Set Text 説明 public function UI\Controls\Label::setText ( string $text ) Shall set the text for this Label パラメータ text The new text 他のマニュアルの関連ページ Python tk
...
-
https://man.mtool.work/php/8.3/ui-controls-label.settext.html
- UI\Controls\Form::append — Append Control | PHP 8.3 9233
- UI\Controls\Form::append (UI 0.9.9) UI\Controls\Form::append — Append Control 説明 public function UI\Controls\Form::append ( string $label , UI\Control $control , bool $stretchy = false ): int Shall append the control to the form, and set
... the label パラメータ label The text for the label control A control stretchy Should be set true to stretch the control 戻り値 Shall ...
-
https://man.mtool.work/php/8.3/ui-controls-form.append.html
- UI\Controls\Label::getText — Get Text | PHP 8.3 9233
- UI\Controls\Label::getText (UI 0.9.9) UI\Controls\Label::getText — Get Text 説明 public function UI\Controls\Label::getText (): string Shall return the current text for this Label 警告 この関数は、 現在のところ詳細な情報はありません。引数の
...
-
https://man.mtool.work/php/8.3/ui-controls-label.gettext.html
- 例 | PHP 8.3 8380
- 例 例1 基本的な、値を限定する例 <?php enum SortOrder { case Asc ; case Desc ; } function query ( $fields , $filter , SortOrder $order = SortOrder :: Asc ) { /* ... */ } query() 関数は、 $order が SortOrder::Asc または SortOrder::Desc である
... tus : string { case Pending = 'P' ; case Active = 'A' ; case Suspended = 'S' ; case CanceledByUser = 'C' ; public function label (): string { return match ( $this ) { self :: Pending => 'Pending' , self :: Active => 'Active' , self :: Suspended => 'Su ... spended' , self :: CanceledByUser => 'Canceled by user' , }; } } $status = UserStatus :: Suspended ; var_dump ( $status -> label ()); この例では、ユーザーのステータスは UserStatus::Pending 、 UserStatus::Active 、 UserStatus::Suspended または UserStat ... れています。 関数はパラメータの型を UserStatus に指定できますし、これら4つの値だけを受け入れます。 これら4つの値は、それぞれ label() メソッドを持ちます。 これは、人間が読みやすい文字列を返します。 この文字列は、"機械向けの名前" にあたるスカラー値とは別の ...
-
https://man.mtool.work/php/8.3/language.enumerations.examples.html
- UI\Controls\Button::setText — Set Text | PHP 8.3 7701
- UI\Controls\Button::setText (UI 0.9.9) UI\Controls\Button::setText — Set Text 説明 public function UI\Controls\Button::setText ( string $text ) Shall set the text (label) for this Button パラメータ text The new text (label) 他のマニュアルの
...
-
https://man.mtool.work/php/8.3/ui-controls-button.settext.html