« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 47 for equals (0.001 sec.)
IntlCalendar::equals — ふたつの IntlCalendar オブジェクトの時刻を比較する | PHP... 13802
IntlCalendar::equals (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::equals — ふたつの IntlCalendar オブジェクトの時刻を比較する 説明 オブジェクト指向型 public function IntlCalendar::equals ( IntlCalendar $other ): bool 手続き ... 型 function intlcal_equals ( IntlCalendar $calendar , IntlCalendar $other ): bool このカレンダーオブジェクトと、 指定されたカレンダーオブジェクトの時 ... るには、 intl_get_error_code() を使うか、 Intl拡張モジュールが 例外 をスローするように設定して下さい。 例 例1 IntlCalendar::equals() <?php ini_set ( 'date.timezone' , 'UTC' ); $cal1 = IntlCalendar :: createInstance ( NULL , 'es_ES' ); $cal2 = clone $cal ... 1 ; var_dump ( $cal1 -> equals ( $cal2 )); //TRUE //The locale is not included in the comparison $cal2 = IntlCalendar :: createInstance ( NULL , 'pt_PT' ...
https://man.mtool.work/php/8.3/intlcalendar.equals.html
Uri\Rfc3986\Uri::equals — 2 つの URI が等価かを判定する | PHP 8.3 11932
Uri\Rfc3986\Uri::equals (PHP 8 >= 8.5.0) Uri\Rfc3986\Uri::equals — 2 つの URI が等価かを判定する 説明 public function Uri\Rfc3986\Uri::equals ( Uri\Rfc3986\Uri $uri , Uri\UriComparisonMode $comparisonMode = Uri\UriComparisonMode::ExcludeFra ... トは除外されます。 戻り値 2 つの URI が等価である場合は true を、そうでない場合は false を返します。 例 例1 Uri\Rfc3986\Uri::equals() の基本的な例 <?php $uri1 = new \Uri\Rfc3986\Uri ( "https://example.com" ); $uri2 = new \Uri\Rfc3986\Uri ( "HTTPS://examp ... le.com" ); var_dump ( $uri1 -> equals ( $uri2 )); ?> 上の例の出力は以下となります。 bool(true) 参考 Uri\WhatWg\Url::equals() - 2 つの URL が等価かを判定する 他の ...
https://man.mtool.work/php/8.3/uri-rfc3986-uri.equals.html
Uri\WhatWg\Url::equals — 2 つの URL が等価かを判定する | PHP 8.3 11932
Uri\WhatWg\Url::equals (PHP 8 >= 8.5.0) Uri\WhatWg\Url::equals — 2 つの URL が等価かを判定する 説明 public function Uri\WhatWg\Url::equals ( Uri\WhatWg\Url $url , Uri\UriComparisonMode $comparisonMode = Uri\UriComparisonMode::ExcludeFragmen ... トは除外されます。 戻り値 2 つの URL が等価である場合は true を、そうでない場合は false を返します。 例 例1 Uri\WhatWg\Url::equals() の基本的な例 <?php $url1 = new \Uri\WhatWg\Url ( "https://example.com" ); $url2 = new \Uri\WhatWg\Url ( "HTTPS://example ... .com" ); var_dump ( $url1 -> equals ( $url2 )); ?> 上の例の出力は以下となります。 bool(true) 参考 Uri\Rfc3986\Uri::equals() - 2 つの URI が等価かを判定する 他 ...
https://man.mtool.work/php/8.3/uri-whatwg-url.equals.html
hash_equals — タイミング攻撃に対しても安全な文字列比較 | PHP 8.3 9819
hash_equals (PHP 5 >= 5.6.0, PHP 7, PHP 8) hash_equals — タイミング攻撃に対しても安全な文字列比較 説明 function hash_equals ( #[ \SensitiveParameter ] string $known_string , #[ \SensitiveParameter ] string $user_string ): bool 実行している間 ... る、比較対象の文字列 戻り値 ふたつの文字列が等しい場合に true を返します。 そうでない場合に、 false を返します。 例 例1 hash_equals() の例 <?php $secretKey = '8uRhAeH89naXfFXKGOEj' ; // $value と $signature の値はユーザが提供します。 // 例: URL内の値と、 ... e = 'username=rasmuslerdorf' ; $signature = '8c35009d3b50caf7f5d2c1e031842e6b7823a1bb781d33c5237cd27b57b5f327' ; if ( hash_equals ( hash_hmac ( 'sha256' , $value , $secretKey ), $signature )) { echo "The value is correctly signed." , PHP_EOL ; } else { ...
https://man.mtool.work/php/8.3/function.hash-equals.html
Ds\Hashable::equals — Determines whether an object is equal to the current inst... 9500
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 ...
https://man.mtool.work/php/8.3/ds-hashable.equals.html
The Hashable interface | PHP 8.3 9257
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 ... oes 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 object will be an instance 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 is ...
https://man.mtool.work/php/8.3/class.ds-hashable.html
演算子の優先順位 | PHP 8.3 8770
演算子の優先順位 演算子の優先順位は、二つの式が"緊密に"結合している度合いを指定します。 例えば、式 1 + 5 * 3 の答えは 16 になり、 18 とはなりません。 これは乗算演算子("*")は、加算演算子("+")より高い優先順位を有するか らです。必要に応じて強制 ... るかもしれません ?> 例4 + 、 - 、 . の優先順位 <?php $x = 4 ; // 次の行は、予期せぬ結果になることでしょう echo "x minus one equals " . $x - 1 . ", or so I hope\n" ; // 期待どおりの結果を得るには、括弧を使って優先順位を指定します echo "x minus one equals ... " . ( $x - 1 ) . ", or so I hope\n" ; // このようにはできず、TypeError がスローされます echo (( "x minus one equals " . $x ) - 1 ) . ", or so I hope\n" ; ?> 上の例の出力は以下となります。 -1, or so I hope -1, or so I hope Fatal error: Unc ... のバージョンでは、 + 、 - 、 . の優先順位は同じ <?php $x = 4 ; // 次の行は、予期せぬ結果になることでしょう echo "x minus one equals " . $x - 1 . ", or so I hope\n" ; // なぜなら、これは次のように評価されるからです(PHP 8.0.0 より前のバージョン) echo (( "x ...
https://man.mtool.work/php/8.3/language.operators.precedence.html
The RarEntry class | PHP 8.3 8451
The RarEntry class (PECL rar >= 0.1) はじめに A RAR entry, representing a directory or a compressed file inside a RAR archive. クラス概要 final class RarEntry { /* 定数 */ const int HOST_MSDOS = 0 ; const int HOST_OS2 = 1 ; const int HOST_W ... ool public function __toString (): string } 定義済み定数 RarEntry::HOST_MSDOS If the return value of RarEntry::getHostOs() equals this constant, MS-DOS was used to add this entry. Use instead of RAR_HOST_MSDOS . RarEntry::HOST_OS2 If the return value o ... f RarEntry::getHostOs() equals this constant, OS/2 was used to add this entry. Intended to replace RAR_HOST_OS2 . RarEntry::HOST_WIN32 If the return valu ... e of RarEntry::getHostOs() equals this constant, Microsoft Windows was used to add this entry. Intended to replace RAR_HOST_WIN32 . RarEntry::HOST_UNIX If t ...
https://man.mtool.work/php/8.3/class.rarentry.html
crypt_gensalt — Compile a string for use as the salt argument to crypt | PHP 8.... 7965
crypt_gensalt (PECL xpass >= 1.1.0) crypt_gensalt — Compile a string for use as the salt argument to crypt 説明 function crypt_gensalt ( string $prefix = null , int $count = 0 ): ? string Compile a string for use as the salt argument to cry ... gensalt ( CRYPT_PREFIX_BLOWFISH ); // Hash the password $hash = crypt ( "secret" , $salt ); // Check the hash $test = hash_equals ( crypt ( "secret" , $hash ), $hash ); var_dump ( $salt , $hash , $test ); ?> 上の例の出力は以下となります。 string(29) "$ ... 参考 crypt_preferred_method() - Get the prefix of the preferred hash method crypt() - 文字列の一方向のハッシュ化を行う hash_equals() - タイミング攻撃に対しても安全な文字列比較 他のマニュアルの関連ページ Linux JM crypt(3) Python crypt Linux JM crypt_r(3) ...
https://man.mtool.work/php/8.3/function.crypt-gensalt.html
Ds\Hashable::hash — Returns a scalar value to be used as a hash value | PHP 8.3 7798
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 objects don't have to be unique, for example you could just return t ... The hash has to be equal if * the objects are equal, otherwise this determination wouldn't be reached. */ public function equals ( $obj ): bool { return $this -> name === $obj -> name && $this -> email === $obj -> email ; } } ?> 他のマニュアルの関連ペ ...
https://man.mtool.work/php/8.3/ds-hashable.hash.html
PREV 1 2 3 4 5 NEXT