rohgan
asked on
Remove slash from a string
I have a php string. Sometimes it contains a slash in the beginning.
How do I :
- Check if the start of string is space followed by slash or just slash
- If so remove the slash from beginning and move it to the end
String is stored in variable called $header
How do I :
- Check if the start of string is space followed by slash or just slash
- If so remove the slash from beginning and move it to the end
String is stored in variable called $header
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.