close


判斷式

想要用regular expression來判斷時間的格式是否符合(23:00)這樣的格式



以下是設計的兩個regular expression



$pattern1 = '/[0-1][0-9]:[0-5][0-9]/'; // 希望match(8:00,08:00,18:00)

$pattern2 = '/[2][0-3]:[0-5][0-9]/'; // 希望match(23:00)



[PHP]避免轉向變成亂碼

@header('Content-Type: text/html; charset=big5');



[HTML]可以用即時通與朋友對話;kidomia為帳號

http://opi.yahoo.com/online?m=g&t=2&u=kidomia

+11111111111111111111


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 killworm737 的頭像
    killworm737

    紀錄些小事情

    killworm737 發表在 痞客邦 留言(0) 人氣()