QuickHashStringIntHash::get

(No version information available, might only be in Git)

QuickHashStringIntHash::getThis method retrieves a value from the hash by its key

说明

public QuickHashStringIntHash::get ( string $key ) : mixed

This method retrieves a value from the hash by its key.

参数

key

The key of the entry to add.

返回值

The value if the key exists, or NULL if the key wasn't part of the hash.

范例

Example #1 QuickHashStringIntHash::get() example

<?php
$hash 
= new QuickHashStringIntHash);
var_dump$hash->get"one" ) );

var_dump$hash->add"two") );
var_dump$hash->get"two" ) );
?>

以上例程的输出类似于:

bool(false)
bool(true)
int(2)

相关文章
php yp/nis 函数 returns the first key value pair from the named mapphp quickhashinthash this method retrieves a value from the hash by its keyphp quickhashinthash this method updates an entry in the hash with a new value or adds a new one if the entry doesn t existphp quickhashinthash this method updates an entry in the hash with a new valuephp quickhashintstringhash this method checks whether a key is part of the hashphp quickhashintstringhash this method retrieves a value from the hash by its keyphp quickhashintstringhash this factory method creates a hash from a filephp quickhashintstringhash this factory method creates a hash from a stringphp quickhashintstringhash this method updates an entry in the hash with a new value or adds a new one if the entry doesn t existphp quickhashintstringhash this method updates an entry in the hash with a new valuephp quickhashstringinthash this method adds a new entry to the hashphp quickhashstringinthash this method deletes am entry from the hashphp quickhashstringinthash this method checks whether a key is part of the hashphp quickhashstringinthash this method retrieves a value from the hash by its keyphp quickhashstringinthash this factory method creates a hash from a filephp quickhashstringinthash this factory method creates a hash from a stringphp quickhashstringinthash this method stores an in memory hash to diskphp quickhashstringinthash this method returns a serialized version of the hashphp quickhashstringinthash this method updates an entry in the hash with a new value or adds a new one if the entry doesn t existphp quickhashstringinthash this method updates an entry in the hash with a new value
关注编程学问公众号