ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilFile.php
Go to the documentation of this file.
1<?php
2
25abstract class ilFile
26{
27 protected string $path;
28
32 public function deleteTrailingSlash(string $a_path): string
33 {
34 // DELETE TRAILING '/'
35 if (str_ends_with($a_path, '/') || str_ends_with($a_path, "\\")) {
36 return substr($a_path, 0, -1);
37 }
38
39 return $a_path;
40 }
41}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
deleteTrailingSlash(string $a_path)
delete trailing slash of path variables
string $path