, $str ; ; คือถ้า ข้อมูลมีขนาดมากกว่า 564 ตัวอักษร จะเกิด warning Message: preg replace [function preg replace]: Compilation failed: regular expression is too large at offset 96 มีวิธีแก้ไขมั้ยครับ"> , $str ; ; คือถ้า ข้อมูลมีขนาดมากกว่า 564 ตัวอักษร จะเกิด warning Message: preg replace [function preg replace]: Compilation failed: regular expression is too large at offset 96 มีวิธีแก้ไขมั้ยครับ"> ' , $str );
};

คือถ้า ข้อมูลมีขนาดมากกว่า 564 ตัวอักษร จะเกิด warning 

Message: preg_replace() [function.preg-replace]: Compilation failed: regular expression is too large at offset 96

มีวิธีแก้ไขมั้ยครับ ","answerCount":1,"upvoteCount":2763,"dateCreated":"2009-03-21T19:22:29+0700","author":{"@type":"Person","name":"มาย","url":"http://www.goragod.com/index.php"},"url":"http://www.goragod.com/forum.html?wbid=1264","suggestedAnswer":[{"@type":"Answer","text":" for($i=0;$i<strlen_utf8($string);$i++)   echo substr_utf8($string,$i,1); เรืยกใช้แบบนี่ครับ","dateCreated":"2009-03-21T21:05:04+0700","author":{"@type":"Person","name":"aslove_chart@hotmail.com","url":"http://www.goragod.com/index.php"},"upvoteCount":0,"url":"http://www.goragod.com/forum.html?wbid=1264#R_1609"}]}}]

มีปัญหา เกี่ยว function นี่คับ มันWarning

function substr_utf8( $str, $from , $len )
{
 return preg_replace( '#^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$from.'}'.
  '((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$len.'}).*#s',
  '' , $str );
};

คือถ้า ข้อมูลมีขนาดมากกว่า 564 ตัวอักษร จะเกิด warning 

Message: preg_replace() [function.preg-replace]: Compilation failed: regular expression is too large at offset 96

มีวิธีแก้ไขมั้ยครับ 
21 มี.ค. 2552 1 2,763

 for($i=0;$i<strlen_utf8($string);$i++)
  echo substr_utf8($string,$i,1);

เรืยกใช้แบบนี่ครับ
#1
ความคิดเห็น
ไฟล์อัปโหลด ชนิด jpg, jpeg ขนาดไฟล์ไม่เกิน 1024
^