| strtotim() | ใช้คืนค่า timestamp ของ pattern ที่กำหนด |
|---|
function:strtotime ( pattern );
return type:int
content:ใช้คืนค่า timestamp ของ pattern ที่กำหนด
example:echo strtotime ( "now" ); echo strtotime ( "10 January 2008" ); echo strtotime ( "+3 weeks" ); echo strtotime ( "+1 week 2 days 4 hours" );
comment:ตัวแปร pattern ได้แก่ now, day, days, week, weeks, hour, hours, minute, minutes, second, seconds, next, last, Sunday, ..., Saturday, January, ..., December