How to make php display \t \n as tab and new line instead of characters [closed] June 11, 2023 by Tarik put it in double quotes echo "\t"; See: http://php.net/language.types.string#language.types.string.syntax.double