| phone() | ใช้คืนค่า เบอร์โทรศัพท์ ที่จัดรูปแบบตามที่กำหนด |
|---|---|
| url() | ใช้คืนค่า url ที่จัดรูปแบบแล้ว คือ มี protocol อยู่ด้วย |
method:phone ( phone, pattern );
return type:string
special:static
content:ใช้คืนค่า เบอร์โทรศัพท์ ที่จัดรูปแบบตามที่กำหนด
example:echo format::phone ( "0867083001", "3-3-4" );
comment:ตัวแปร pattern คือรูปแบบที่ต้องการจัด
method:url ( url );
return type:string
special:static
content:ใช้คืนค่า url ที่จัดรูปแบบแล้ว คือ มี protocol อยู่ด้วย
example:echo format::url ( "www.google.com" );