Jump to content

substr help


HCProfessionals

Recommended Posts

I have a directory list using variables Folder/ and sub folders with /Folder/, what i need to do is replace the beginning slash if there is one. I'm using a recursive command and if i use substr for example:

 

subtr("$variable", 1); it will always remove the first character. What I need is an if statement or something to check to make sure it is a slash.

Link to comment
https://forums.phpfreaks.com/topic/248410-substr-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.