Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Replace all occurrences of the search string with the replacement string
<?php str_replace(    array|string $search,    array|string $replace,    string|array $subject,    int &$count = null): string|array
<?php         $connection = $this->connection();



        if ($this->isPureFtpdServer()) {

            $path = str_replace(' ', '\ ', $path);

            $path = $this->escapePath($path);

        }
<?php     private function escapePath(string $path): string

    {

        return str_replace(['*', '[', ']'], ['\\*', '\\[', '\\]'], $path);

    }

}
<?php             $visibility = $isDirectory ? $this->visibility->inverseForDirectory($permissions) : $this->visibility->inverseForFile($permissions);



            yield $isDirectory ? new DirectoryAttributes($path, $visibility, $lastModified) : new FileAttributes(

                str_replace('\\', '/', $path),

                $fileInfo->getSize(),

                $visibility,

                $lastModified
<?php {

    private function formatPropertyName(string $offset): string

    {

        return str_replace('_', '', lcfirst(ucwords($offset, '_')));

    }
<?php {

    public function normalizePath(string $path): string

    {

        $path = str_replace('\\', '/', $path);

        $this->rejectFunkyWhiteSpace($path);



        return $this->normalizeRelativePath($path);