Results of 1 - 1 of about 1 for Dodo (0.001 sec.)
- parse_ini_file — 設定ファイルをパースする | PHP 8.3 9414
- parse_ini_file (PHP 4, PHP 5, PHP 7, PHP 8) parse_ini_file — 設定ファイルをパースする 説明 function parse_ini_file ( string $filename , bool $process_sections = false , int $scanner_mode = INI_SCANNER_NORMAL ): array | false parse_ini_file(
... 合されます。 ini ファイル上の値だけが評価されます。この値は定数でなければなりません。以下は例です: <?php define ( 'BIRD' , 'Dodo bird' ); // セクションを無視してパースします。 $ini_array = parse_ini_file ( "sample.ini" ); print_r ( $ini_array ); // セ ... e ); print_r ( $ini_array ); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [one] => 1 [five] => 5 [animal] => Dodo bird [path] => /usr/local/bin [URL] => http://www.example.com/~username [phpversion] => Array ( [0] => 5.0 [1] => 5.1 [2] ... > http://svn.php.net [git] => http://git.php.net ) ) Array ( [first_section] => Array ( [one] => 1 [five] => 5 [animal] => Dodo bird ) [second_section] => Array ( [path] => /usr/local/bin [URL] => http://www.example.com/~username ) [third_section] => ...
-
https://man.mtool.work/php/8.3/function.parse-ini-file.html
PREV
1
NEXT