private static function iterateProcessPathInnerHelper(string $dir, string $relative_path) {
		if ($relative_path == '') {
			return $dir;
		} else {
			$dir = trim2($dir, '^' . $relative_path, '');
			$dir = ltrim($dir, DIRECTORY_SEPARATOR);
			return $dir;
		}
	}
private static function iterateProcessPathInnerHelper(string $dir, string $relative_path) {
		if ($relative_path == '') {
			return $dir;
		} else {
			$dir = trim2($dir, '^' . $relative_path, '');
			$dir = ltrim($dir, DIRECTORY_SEPARATOR);
			return $dir;
		}
	}
private static function iterateProcessPathInnerHelper ( string $ dir , string $ relative_path ) { if ( $ relative_path == '' ) { return $ dir ; } else { $ dir = trim2 ( $ dir , '^' . $ relative_path , '' ) ; $ dir = ltrim ( $ dir , DIRECTORY_SEPARATOR ) ; return $ dir ; } }
Function to remove absolute path

@param string $dir
@param string $relative_path
@return string
Function to remove absolute path