Answers for "append data to text php"

PHP
2

appending txt file from php

$log_content="This line is logged on 2020-08-14 09:55:00";
$myfile = fopen("log.txt", "a") or die("Unable to open file!");
fwrite($myfile, $log_content);
fclose($myfile);
Posted by: Guest on August-14-2020
0

append variable to string php

<?php
  $example = "Example text"
  echo ("Example " . $example ." text")
?>
Posted by: Guest on August-25-2021

Browse Popular Code Answers by Language