> For the complete documentation index, see [llms.txt](https://appsecurity.gitbook.io/devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appsecurity.gitbook.io/devops/ppc/ppc-langs/backend/php/examples/rabota-s-failami.md).

# Работа с файлами

Чтение

```php
$file_name = 'test.phar';
$phar_content = file_get_contents($file_name);
```

Запись

```php
$outfile = 'out.phar'
file_put_contents($outfile, $phar_content);
```

Удаление файла

```php
$file_name = 'test.phar';
@unlink($file_name);
```
