| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
Ds\Map::get(PECL ds >= 1.0.0) Ds\Map::get — Returns the value for a given key. 説明Returns the value for a given key, or an optional default value if the key could not be found.
警告
Be careful when using array syntax. Scalar keys will be coerced to
integers by the engine. For example, See Arrays. パラメータ
返り値
The value mapped to the given エラー / 例外OutOfBoundsException if the key could not be found and a default value was not provided. 例例1 Ds\Map::get() example
<?php 上の例の出力は、 たとえば以下のようになります。 int(1) int(10) 例2 Ds\Map::get() example using array syntax
<?php 上の例の出力は、 たとえば以下のようになります。 int(1) |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「Ds\Map::get - Returns the value for a given key.」をGoogle検索
|