Google

วันอาทิตย์ที่ 8 กรกฎาคม พ.ศ. 2550

PHP วิธีการตัดตัวอักษร

PHP code
---------------------------
$string = "My World"; //ข้อความที่ต้องการนำมาตัด
$newstring = substr($string, 3, 4);
echo $newstring;

ผลลัพธ์ =Worl

ไม่มีความคิดเห็น: