Add new line on update register

Hi, i need to add a new line to my log everytime i add a new content.

I tried to do that: $newData[“log”] = $log . “\n” . $data[‘log’];

But it seems the php escapes it, there’s a way to remove this escape?

$newData[“log”] = $log . “\n” . $data[‘log’];

Working for me when i use Yii::log() function