How to write data to a file. PHP code example open

How to write data to a file. PHP code example

$content = "Name: $name\n Surname: $surname\n";
$filename = "user.txt";

$createfile = fopen($filename, 'w');
fwrite($createfile, $content);
fclose($createfile);
0

More

Leave a Reply

Your email address will not be published. Required fields are marked *

How many?: 22 + 22

lil-code© | 2022 - 2024
Go Top
Authorization
*
*
Registration
*
*
*
*
Password generation