« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 73 for equal (0.002 sec.)
パーサートークンの一覧 | PHP 8.3 12506
パーサートークンの一覧 PHP 言語の種々の部分は、内部的に トークン で表現されています。 不正なトークンのシーケンスが含まれるコードスニペットの場合、 Parse error: syntax error, unexpected token "==", expecting "(" in script.php on line 10." の ... ようなエラーが発生します。 この場合、トークン == が内部的に T_IS_EQUAL として表現されています。 以下の表に、全てのトークンの一覧を示します。 これらは、全て PHP の定数としても利用できます。 注意 ... 宣言 (PHP 8.1.0 以降で利用可能) T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG ( int ) & 型宣言 (PHP 8.1.0 以降で利用可能) T_AND_EQUAL ( int ) &= 代入演算子 T_ARRAY ( int ) array() array() , array 構文 T_ARRAY_CAST ( int ) (array) 型キャスト T_AS ( int ) as ... int ) clone クラスとオブジェクト T_CLOSE_TAG ( int ) ?> or %> HTML からの脱出 T_COALESCE ( int ) ?? 比較演算子 T_COALESCE_EQUAL ( int ) ??= NULL合体代入演算子 (PHP 7.4.0 以降で利用可能) T_COMMENT ( int ) // or #, and /* */ コメント T_CONCAT_EQUAL ( i ...
https://man.mtool.work/php/8.3/tokens.html
The Hashable interface | PHP 8.3 12157
The Hashable interface (PECL ds >= 1.0.0) はじめに Hashable is an interface which allows objects to be used as keys. It's an alternative to spl_object_hash() , which determines an object's hash based on its handle: this means that two objec ... ts that are considered equal by an implicit definition would not be treated as equal because they are not the same instance. hash() is used to return a ... sh value, which determines where it goes in the hash table. While this value does not have to be unique, objects which are equal must have the same hash value. equals() is used to determine if two objects are equal. It's guaranteed that the comparing ... nce of the same class as the subject. インターフェイス概要 interface Ds\Hashable { /* メソッド */ abstract public function equals ( object $obj ): bool abstract public function hash (): mixed } 目次 Ds\Hashable::equals — Determines whether an object i ...
https://man.mtool.work/php/8.3/class.ds-hashable.html
Ds\Hashable::hash — Returns a scalar value to be used as a hash value | PHP 8.3 11640
Ds\Hashable::hash (PECL ds >= 1.0.0) Ds\Hashable::hash — Returns a scalar value to be used as a hash value 説明 abstract public function Ds\Hashable::hash (): mixed Returns a scalar value to be used as the hash value of the objects. While t ... he hash value does not define equality, all objects that are equal according to Ds\Hashable::equals() must have the same hash value. Hash values of equal obje ... e object, such as a public property. Hash table lookups would fail because the hash has changed. 警告 All objects that are equal must have the same hash value. パラメータ この関数にはパラメータはありません。 戻り値 A scalar value to be used as this ob ... struct ( $name , $email ) { $this -> name = $name ; $this -> email = $email ; } /** * Should return the same value for all equal objects, but doesn't have to * be unique. This value will not be used to determine equality. */ public function hash () { ...
https://man.mtool.work/php/8.3/ds-hashable.hash.html
Ds\Hashable::equals — Determines whether an object is equal to the current inst... 11556
Ds\Hashable::equals (PECL ds >= 1.0.0) Ds\Hashable::equals — Determines whether an object is equal to the current instance 説明 abstract public function Ds\Hashable::equals ( object $obj ): bool Determines whether another object is equal to ... is interface. 注意 : It's guaranteed that obj is an instance of the same class. 警告 It's important that objects which are equal also have the same hash value. See Ds\Hashable::hash() . パラメータ obj The object to compare the current instance to, whi ... ch is always an instance of the same class. 戻り値 true if equal, false otherwise. 他のマニュアルの関連ページ Linux JM hash(3) Linux JM pthread_equal(3) DuckDB Caveats DuckDB Comparisons ...
https://man.mtool.work/php/8.3/ds-hashable.equals.html
Operator Overloading Magic Methods | PHP 8.3 10438
Operator Overloading Magic Methods The operator overloading extension allows you to define how an object reacts to operators. This is done by implementing the following magic methods: Arithmetic operators: $a::__add($b) $a::__sub($b) $a::__ ... $a::__bw_and($b) $a::__bw_or($b) $a::__bw_xor($b) $a::__bw_not() $a::__sl($b) $a::__sr($b) Comparison operators: $a::__is_equal($b) $a::__is_not_equal($b) $a::__is_identical($b) $a::__is_not_identical($b) $a::__is_smaller($b) $a::__is_smaller_or_equa ... l($b) $a::__is_greater($b) $a::__is_greater_or_equal($b) $a::__spaceship($b) Incrementing and decrementing operators: $a::__pre_inc() $a::__post_inc() $a::__pre_dec() $a::__po ... _sr ( mixed $val ): int { return $this -> value >> $val ; } //endregion //region Comparison Operators public function __is_equal ( mixed $val ): bool { return $this -> value == $val ; } public function __is_greater ( mixed $val ): bool { return $this ...
https://man.mtool.work/php/8.3/operator.overloading.html
oci_lob_is_equal — 2 つの LOB/FILE ロケータの等価性を比較する | PHP 8.3 10172
oci_lob_is_equal (PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0) oci_lob_is_equal — 2 つの LOB/FILE ロケータの等価性を比較する 説明 function oci_lob_is_equal ( OCILob $lob1 , OCILob $lob2 ): bool 2 つの LOB/FILE ロケータを比較します。 パラメータ ... 、PHP 8 と PECL OCI8 3.0.0 より前のバージョンでは、OCI-Lob と呼ばれていました。 他のマニュアルの関連ページ Linux JM pthread_equal(3) Python xml.sax.handler Linux JM pthread_self(3) DuckDB Caveats DuckDB Comparisons Linux JM od(1) ...
https://man.mtool.work/php/8.3/function.ocilob-is-equal.html
Ds\Set::add — Adds values to the set | PHP 8.3 7853
Ds\Set::add (PECL ds >= 1.0.0) Ds\Set::add — Adds values to the set 説明 public function Ds\Set::add ( mixed ...$values ): void Adds all given values to the set that haven't already been added. 注意 : Values of type object are supported. If ... an object implements Ds\Hashable , equality will be determined by the object's equals function. If an object does not implement Ds\Hashable , objects must be refer ... ences to the same instance to be considered equal. 警告 All comparisons are strict (type and value). パラメータ values Values to add to the set. 戻り値 値を返しません。 例 ... ts <?php class HashableObject implements \Ds\Hashable { /** * An arbitrary value to use as the hash value. Does not define equality. */ private $value ; public function __construct ( $value ) { $this -> value = $value ; } public function hash () { ret ...
https://man.mtool.work/php/8.3/ds-set.add.html
Ds\Set::sum — Returns the sum of all values in the set | PHP 8.3 7769
Ds\Set::sum (PECL ds >= 1.0.0) Ds\Set::sum — Returns the sum of all values in the set 説明 public function Ds\Set::sum (): int | float Returns the sum of all values in the set. 注意 : Arrays and objects are considered equal to zero when cal ... > 上の例の出力は、 たとえば以下のようになります。 float(6.5) 他のマニュアルの関連ページ DuckDB Array Type Linux JM pthread_equal(3) Linux JM strncasecmp(3) Linux JM strcasecmp(3) DuckDB Caveats Python fractions ...
https://man.mtool.work/php/8.3/ds-set.sum.html
Ds\Map::sum — Returns the sum of all values in the map | PHP 8.3 7685
Ds\Map::sum (No version information available, might only be in Git) Ds\Map::sum — Returns the sum of all values in the map 説明 public function Ds\Map::sum (): int | float Returns the sum of all values in the map. 注意 : Arrays and objects ... are considered equal to zero when calculating the sum. パラメータ この関数にはパラメータはありません。 戻り値 The sum of all the values in the ... > 上の例の出力は、 たとえば以下のようになります。 float(6.5) 他のマニュアルの関連ページ DuckDB Array Type Linux JM pthread_equal(3) Linux JM strncasecmp(3) Linux JM strcasecmp(3) DuckDB Caveats Python fractions ...
https://man.mtool.work/php/8.3/ds-map.sum.html
定義済み定数 | PHP 8.3 7252
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 RUNKIT7_IMPORT_FUNCTIONS ( int ) runkit7_import() flag indicating that normal ... lag for runkit7_method_add() and runkit7_method_redefine() to make the method static. RUNKIT7_FEATURE_MANIPULATION ( int ) Equal to 1 if runtime manipulation is enabled, and 0 otherwise. RUNKIT7_FEATURE_SUPERGLOBALS ( int ) Equal to 1 if custom superg ...
https://man.mtool.work/php/8.3/runkit7.constants.html
PREV 1 2 3 4 5 6 7 8 NEXT