Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Join array elements with a string
Alias join
<?php implode(string $separator, array $array): string
<?php         $response = ftp_raw($this->connection, 'HELP');



        return $this->isPureFtpdServer = stripos(implode(' ', $response), 'Pure-FTPd') !== false;

    }



    public function fileExists(string $path): bool
<?php         };




        return octdec(implode('', array_map($mapper, $parts)));

    }
<?php         }




        $responseCode = $response ? (int) preg_replace('/\D/', '', implode('', $response)) : false;



        return $responseCode === 200;

    }
<?php     {

        $content = explode(' ', $publicKey, 3);



        return implode(':', str_split(md5(base64_decode($content[1])), 2));

    }



    private function authenticate(SFTP $connection): void
<?php     {

        $content = explode(' ', $publicKey, 3);



        return implode(':', str_split(md5(base64_decode($content[1])), 2));

    }

}
<?php         $content = explode(' ', $publicKey, 3);

        $algo = $content[0] === 'ssh-rsa' ? 'md5' : 'sha512';



        return implode(':', str_split(hash($algo, base64_decode($content[1])), 2));

    }



    private function authenticate(SFTP $connection): void
<?php         $content = explode(' ', $publicKey, 3);

        $algo = $content[0] === 'ssh-rsa' ? 'md5' : 'sha512';



        return implode(':', str_split(hash($algo, base64_decode($content[1])), 2));

    }

}
<?php             }

        }



        return implode('/', $parts);

    }

}