Contact: aviboots(AT)netvision.net.il
40,866 questions
53,271 answers
573 users
// Example string with trailing path separator $path = "example/path/project/"; // Remove the trailing path separator $trimmedPath = rtrim($path, "/"); // Output the result echo $trimmedPath; /* run: example/path/project */