memo.xight.org

01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

2006-03-11 Sat

金楽 高島平店

- Summary
高島平にある焼肉屋.
- Data

住所 東京都板橋区高島平8-19-6
営業時間 11:00 - 14:30 , 17:00 - 26:00
定休日 月曜日
電話番号 03-3931-1020
最寄り駅 高島平
- Reference
志村料理飲料組合 ぐるめ・ネット - 焼肉 金楽 高島平店
http://www.shimura-ryouin.gr.jp/gurume/shop/b014.html

カテゴリ: [Restaurant]

spyc - PHPでYAMLを扱えるライブラリ

- 用途
オプションファイルを YAML で記述.
オプションファイルの編集に PHP を利用.

- YAML から 配列に

include('spyc.php');
 
$array = Spyc::YAMLLoad('yamlfile.yml');
print_r($array);


- 配列 から YAML に
include('spyc.php');
 
$array[] = 'Sequence item';
$array['The Key'] = 'Mapped value';
$array[] = array('A sequence','of a sequence');
$array[] = array('first' => 'A sequence','second' => 'of mapped values');
$array['Mapped'] = array('A sequence','which is mapped');
$array['A Note'] = 'What if your text is too long?';
$array['Another Note'] = 'If that is the case, the dumper will probably fold your text by using a block.  Kinda like this.';
$array['The trick?'] = 'The trick is that we overrode the default indent, 2, to 4 and the default wordwrap, 40, to 60.';
$array['Old Dog'] = "And if you want\n to preserve line breaks, \ngo ahead!";
 
$yaml = Spyc::YAMLDump($array,4,60);
print_r($yaml);


- Reference
SourceForge - spyc: a simple php yaml class
http://spyc.sourceforge.net/

cl.pocari.org - 人間にとって読みやすいデータ直列化フォーマット YAML Ain't Markup Language
http://cl.pocari.org/2005-10-20-1.html
NamingSense::TokuLog! - YAMLでヴァリデーションの条件を書く
http://d.hatena.ne.jp/tokuhirom/20060310/1142007501

- via
phpspot開発日誌 - PHP用YAMLクラス : spyc
http://phpspot.org/blog/archives/2006/02/phpyaml_spyc.html

カテゴリ: [PHP][YAML]
2006-03 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Color Reference

ChangeLogを検索
携帯電話からアクセス!

カテゴリ

最近の話題

リンク

過去ログ

Google

QR Code

Since
2002-11-28
Update
2008-09-05 14:14
Copyright © 2005 xight.org All Rights Reserved.