1<?php
2
3function file_put_contents($filename, $data) {
4  $file = fopen($filename, 'w');
5  fwrite($file, $data);
6  fclose($file);
7}
8
9?>