Tag Archives: PHP

function cut off

Function นี้ใช้รวมกัน กับ Function insert slash

โดยการจัดการของ function นี้ จะเอาคำที่ไม่ต้่องการออก

โดยมี โค้ดดังนี้

12-1-2552-19-16-13

ผลที่แสดง

12-1-2552-19-15-38

please credit : sudej.com

read more PHP , ,

function insert slash

เราจะรู้ได้อย่างไรว่า คำสุดท้ายของ Array เป็นตัวอะไร

วันนี้ผมมีโอกาศได้ทำคับ  จึงนำมาเผ่ยแพร่ คับ

เริ่มจากนำข้อมูลที่อยู่ใน Array มาใส่ใน Function นี้ได้เลยคับ

12-1-2552-18-08-01

ผลลัพธ์ที่จะได้ ก็ได้ดังนี้คับ

12-1-2552-18-04-40

please take a credit : sudej.com

read more PHP , ,

Enum Type

The ENUM Type

An ENUM is a string object with a value chosen from a list of allowed values that are enumerated explicitly in the column specification at table creation time.

For example, a column specified as ENUM('one', 'two', 'three') can have any of the values shown here. The index of each value is also shown:

enum1

An enumeration can have a maximum of 65,535 elements.

read more MySQL , , ,