| basename() | ใช้คืนค่า ชื่อไฟล์ จาก path ที่กำหนด |
|---|
function:basename ( path, suffix );
return type:string
content:ใช้คืนค่า ชื่อไฟล์ จาก path ที่กำหนด
example:$path = "D:/bamboo/project/index.php"; echo basename ( $path, ".txt" ); echo basename ( $path );
comment:ตัวแปร suffix คือกำหนดส่วนท้ายของไฟล์ที่ต้องการตัดออก