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