| str_split() | ใช้แบ่งค่าของ string แล้วเก็บไว้ที่ array |
|---|
function:str_split ( string, length );
return type:array
content:ใช้แบ่งค่าของ string แล้วเก็บไว้ที่ array โดยแต่ละส่วนจะถูกแบ่ง ตามจำนวนที่กำหนด ( length )
example:$string = "bamboolabcode"; $arr = str_split ( $string, 2 ); print_r ( $arr );