string - Logging each error on a new line php -
string - Logging each error on a new line php -
i need log each error on new line.
file_put_contents('pdoerrors.txt', $e->getmessage() . \n, file_append);
this works intended except remains on first line effort utilize \n appears incorrect.
alternative way:
file_put_contents('pdoerrors.txt', $e->getmessage().php_eol, file_append);
php string string-concatenation
Comments
Post a Comment