I'm not quite sure if this is possible as im new to PHP but im trying to insert the date in the format below into my output.txt before the actual line of text.
file_put_contents('output.txt', $data . PHP_EOL, FILE_APPEND);
The date format im trying to define is
date("d/m : H:i :", time())
BTW, I know the time format is weird, im using the space : to be followed by the data.
The goal outcome would be:
4/18 : 4:32 : String of text.