นับจำนวนบรรทัดของ textarea


หน้าแรก PHP MySQL เกร็ดความรู้ นับจำนวนบรรทัดของ textarea
int substr_count ( string haystack, string needle)
substr_count() returns the number of times the needle substring occurs in the haystack string.


  Code
<?php
substr_count($_REQUEST['text'], "n");
?>



ขึ้นไปด้านบน