2008.11.27/Thu 17:00:35
$output = "foo\nbar";
preg_match('/.+/s', $output, $matches);
print_r($matches);
sオプションを使います。
正確にはドットが改行文字もマッチするようになるオプションです。
詳しくはhttp://jp2.php.net/manual/ja/reference.pcre.pattern.modifiers.php
category: PHP
go page top

