It returns a detailed list of files in the given directory
Example
<?php
$ftpId = ftp_connect(‘ftp.phpcodez.com’);
$login = ftp_login($ftpId, ‘anonymous’, ‘user@phpcodez.com’);
$result = ftp_rawlist($ftpId, ‘/’);
ftp_quit($ftpId);
echo “<pre>”;print_r($result);
?>