using basename function we can get the file name
syntax: string basename ( string $path [, string $suffix] )
eg: $path = "home/www/pfaqs/view_question.php"; $file = basename($path); // o/p view_question.php $file = basename($path, ".php"); // o/p view_question
Learn to Develop an iPhone or iPad App in 4 Weeks Learn the latest and greatest markup language in the market with Robin Nixon(HTML & HTML5) Now $29 Only(75% Off)
using basename function we
Thu, 07/24/2008 - 05:30 — adminusing basename function we can get the file name
syntax: string basename ( string $path [, string $suffix] )
eg:
$path = "home/www/pfaqs/view_question.php";
$file = basename($path); // o/p view_question.php
$file = basename($path, ".php"); // o/p view_question