2012-04-27から1日間の記事一覧
PHPのドキュメントわかりづらいhttp://jp.php.net/manual/ja/function.preg-match.php・1の例 $subject = "abcdef"; $pattern = '/^def/'; preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 3); print_r($matches); こちらがArray ( )になり…
PHPのドキュメントわかりづらいhttp://jp.php.net/manual/ja/function.preg-match.php・1の例 $subject = "abcdef"; $pattern = '/^def/'; preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 3); print_r($matches); こちらがArray ( )になり…