|
QuickHashIntStringHash::loadFromStringThis factory method creates a hash from a string 説明
public static QuickHashIntStringHash QuickHashIntStringHash::loadFromString(string
$contents , int $size = 0, int $options = 0)This factory method creates a new hash from a definition in a string. The format is the same as the one used in "loadFromFile". パラメータ
戻り値Returns a new QuickHashIntStringHash. 例
例1 QuickHashIntStringHash::loadFromString example
上の例の出力は、 たとえば以下のようになります。 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 |