I want to put content from 2 or more requests into a file that will be formatted as:
customer | invoice
Below I managed to get both request to be posted, but how do I get them to be posted in the below format:
Customer1 | Invoice1
Customer2 | Invoice2 ..etc
PHP Code :
file_put_contents('/root/service_Logs/service.log',"
{$this->request->customer}\n",FILE_APPEND);
file_put_contents('/root/service_Logs/service.log',
"{$this->request->invoice}\n",FILE_APPEND);
Edit: Still not apple to get them in that format. Any ideas?