PHP 클래스 HTMLPurifier_StringHashParser, yii
DefaultKeyValue
KEY: Value
KEY2: Value2
--MULTILINE-KEY--
Multiline
value.
Which would output something similar to:
array(
'ID' => 'DefaultKeyValue',
'KEY' => 'Value',
'KEY2' => 'Value2',
'MULTILINE-KEY' => "Multiline\nvalue.\n",
)
We use this as an easy to use file-format for configuration schema
files, but the class itself is usage agnostic.
You can use ---- to forcibly terminate parsing of a single string-hash;
this marker is used in multi string-hashes to delimit boundaries.
파일 보기
프로젝트 열기: yiisoft/yii
1 사용 예제들
공개 프로퍼티들
공개 메소드들
보호된 메소드들
메소드 |
설명 |
|
parseHandle ( resource $fh ) : array |
Internal parser that acepts a file handle. |
|
메소드 상세
Parses a file that contains a single string-hash.
Internal parser that acepts a file handle.
protected parseHandle ( resource $fh ) : array |
$fh |
resource |
File handle with pointer at start of valid string-hash
block. |
리턴 |
array |
|
Parses a file that contains multiple string-hashes delimited by '----'
프로퍼티 상세