วันพุธที่ 4 พฤษภาคม พ.ศ. 2554

PHP strstr()

PHP strstr() ตัดข้อความบางส่วนตั้งแต่ตัวแรกที่ค้นพบจนถึงตัวสุดท้าย

Syntax
---------------------
   strstr($string,$cut)
---------------------


Example
*-*-*-*-*-*-*-*-*-*-*
<?php
         echo strstr('oon_pol@hotmail.com','@');
?>
*-*-*-*-*-*-*-*-*-*-*

ผลที่ได้คือ oon_pol

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

แสดงความคิดเห็น