update : 2015.11.03
php.shukuma.com

검색:
 
 
This method retrieves a value from the hash by its key

QuickHashStringIntHash::get

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

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

설명

public mixed QuickHashStringIntHash::get ( string $key )

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)