In PHP, I am creating a long string, like this:
$cmd = "scp -P 435 xxxxxxxx@xxxxxxxxxxx:/var/backups/db/xxxxxxxxxxxxx{$todayTimestamp}*.sql.gz /var/xxxx/xxxx/xxxx/xxxx/"
In order to better display the code on the monitor, I would like to break it to a new line but I dont't want the $cmd variable to contain a new line character.
An easy solution would be:
$cmd = "__first_part__ ";
$cmd .= "__second_part__";
But I don't like that very much.
I bet there is a better way in PHP.
Does anybody know that, please?
Thanks,
Dan