Code: Select all
C:\\Inetpub\\check.htm
a
please help in this manner.
Thanks
Moderator: General Moderators
Code: Select all
C:\\Inetpub\\check.htm
eshban wrote:Hello I have a following string in a variable
How an i extract a filename from that. I just need check.htm from this whole string, or i just need the filename.Code: Select all
C:\\Inetpub\\check.htm
a
please help in this manner.
Thanks
Code: Select all
// use
$fileName = end(explode('\\', "C:\\Inetpub\\check.htm"));Perhaps if y ou read the manual page provided by volka, you'd come to terms with basename()dimovi wrote:Code: Select all
// use $fileName = end(explode('\\', "C:\\Inetpub\\check.htm"));