2007년 11월 29일 목요일

[ ] 의 개수

preg_match_all("|[\[](.*)[\]]|U", $macro, $matches);

        // 매크로 케이스 체크
        if ( count($matches[0]) > 1 )
        {
                $macro_case = 1; // ex) <packs>[product_name][options][qty]
                $arr_macro = $matches[1];
        }

댓글 없음:

댓글 쓰기