Answers for "write php"

PHP
2

write in a file using php

<?php
$myfile = fopen("file_name.txt", "w") or die("Unable to open file!");
$txt = "Hello world\n";
fwrite($myfile, $txt);
$txt = " Php.\n";
fwrite($myfile, $txt);
fclose($myfile);
?>
Posted by: Guest on June-05-2020
0

how to write in php

<?php
  echo "Hello WOrld";
?>
Posted by: Guest on July-27-2021

Browse Popular Code Answers by Language