update : 2015.11.03
php.shukuma.com검색:
|
QuickHashIntHash::loadFromString(PECL quickhash >= Unknown) QuickHashIntHash::loadFromString — This factory method creates a hash from a string 설명
public static QuickHashIntHash QuickHashIntHash::loadFromString
( string
$contents
[, int $options
] )This factory method creates a new hash from a definition in a string. The file format consists of 32 bit signed integers packed together in the Endianness that the system that the code runs on uses. For each element there are two 32 bit signed integers stored. The first of each element is the key, and the second is the value belonging to the key. 인수
반환값Returns a new QuickHashIntHash. 예제
Example #1 QuickHashIntHash::loadFromString() example
<?php 위 예제의 출력 예시: Key 0 ( 0) is unset Key 1 ( 1) is set Key 2 ( 2) is set Key 3 ( 3) is set Key 4 ( 4) is unset Key 5 ( 5) is set Key 6 ( 6) is unset Key 7 ( 7) is set Key 8 ( 8) is unset Key 9 ( 9) is unset Key 10 ( a) is unset Key 11 ( b) is set Key 12 ( c) is unset Key 13 ( d) is set Key 14 ( e) is unset Key 15 ( f) is unset |