Is it possible to change tab width (\ t) in a PHP string?

I'm not even sure if this is possible, but I would like to change the \ t value in PHP lines. For example, for now, if I do this:

echo "\t\tHello";

The conclusion is 16 spaces followed by hello - so the bookmark is 8 spaces wide. Is there a way to change this default tab width to a different number when using \ t in lines?

Actually, it’s not so important that I do it, and there are many obvious tasks, it’s just interesting if I’m missing something that is easy to do and cannot find.

+3
source share
2 answers

The width of the bookmark is not specified by PHP, but by the program that views it. If you view it in the editor, you can set the tab width in the editor.

+11

, .

, PHP , , ... -, (CSS/Javascript...)

, , this... , , .

0

Source: https://habr.com/ru/post/1767334/


All Articles