How does php fwrite write multiple variables at the same time?

<?php
$name=":".$_POST["name"]."\r\n";
$tel=":".$_POST["tel"]."\r\n";
$auto=":".$_POST["auto"]."\r\n";
$fp=fopen("auto.txt","w");
fwrite($fp,$name);
fwrite($fp,$tel);
fwrite($fp,$auto);

how not to write fwrite? 3 times

Php
Mar.06,2021

fwrite($fp,$name.$tel.$auto);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36b63-2c01a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36b63-2c01a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?