I want to aligning my output in columns. But when I try to do this I always get this:
1. FIRSTNAME1 LASTNAME1
2. FIRSTNAME2 LASTNAME2
3. FIRSTNAME3 LASTNAME3
The output I want would be like this:
1. FIRSTNAME1 LASTNAME1 D.
2. FIRSTNAME2 LASTNAME2 D.
3. FIRSTNAME3 LASTNAME3 D.
This is the code that I use:
$log = $lastname." ".$firstname.PHP_EOL;
file_put_contents('logs/'.date("Y-m-d").'.txt', $log, FILE_APPEND);