« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for existingEntries (0.000 sec.)
QuickHashIntHash::exists — This method checks whether a key is part of the hash... 9357
QuickHashIntHash::exists (PECL quickhash >= Unknown) QuickHashIntHash::exists — This method checks whether a key is part of the hash 説明 public function QuickHashIntHash::exists ( int $key ): bool This method checks whether an entry with t ... y is not found. 例 例1 QuickHashIntHash::exists() example <?php //generate 200000 elements $array = range ( 0 , 199999 ); $existingEntries = array_rand ( array_flip ( $array ), 180000 ); $testForEntries = array_rand ( array_flip ( $array ), 1000 ); $foundCount ... ( true ), "\n" ; $hash = new QuickHashIntHash ( 100000 ); echo "Adding elements: " , microtime ( true ), "\n" ; foreach( $existingEntries as $key ) { $hash -> add ( $key , 56 ); } echo "Doing 1000 tests: " , microtime ( true ), "\n" ; foreach( $testForEntries ...
https://man.mtool.work/php/8.3/quickhashinthash.exists.html
QuickHashIntSet::exists — This method checks whether a key is part of the set |... 9357
QuickHashIntSet::exists (PECL quickhash >= Unknown) QuickHashIntSet::exists — This method checks whether a key is part of the set 説明 public function QuickHashIntSet::exists ( int $key ): bool This method checks whether an entry with the p ... ry is not found. 例 例1 QuickHashIntSet::exists() example <?php //generate 200000 elements $array = range ( 0 , 199999 ); $existingEntries = array_rand ( array_flip ( $array ), 180000 ); $testForEntries = array_rand ( array_flip ( $array ), 1000 ); $foundCount ... me ( true ), "\n" ; $set = new QuickHashIntSet ( 100000 ); echo "Adding elements: " , microtime ( true ), "\n" ; foreach( $existingEntries as $key ) { $set -> add ( $key ); } echo "Doing 1000 tests: " , microtime ( true ), "\n" ; foreach( $testForEntries as $ke ...
https://man.mtool.work/php/8.3/quickhashintset.exists.html
PREV 1 NEXT