How can multiple copies of a file be saved in different directories using PHP?

To save multiple copies of a file in different directories using PHP, you can use the `copy()` function to duplicate the file and save it in different locations. You can specify the destination directory for each copy of the file by providing the full path to the directory along with the new file name.

$file = 'path/to/original/file.txt';
$dest1 = 'path/to/destination1/file_copy.txt';
$dest2 = 'path/to/destination2/file_copy.txt';

copy($file, $dest1);
copy($file, $dest2);