Please help, how can i find the constant like PHP_EOL for tabulation My code wrote file which has a lot of generated tabulations and new lines new lines wrote correctly, but i have a lot of "\t\t" see example:
common.app \t/loader \t/growl \t\t/error \t/form
Ok I found solution
chr(9)
wrote tabulation to output file
Thanks!
PHP_EOL is a Constant from Core PHP. You could simply define your own Constants and use them. For example:
<?php
defined("TAB1") or define("TAB1", "\t");
defined("TAB2") or define("TAB2", "\t\t");
defined("TAB3") or define("TAB3", "\t\t\t");
defined("TAB4") or define("TAB4", "\t\t\t\t");
defined("TAB5") or define("TAB5", "\t\t\t\t\t");
$string = "common.app" . TAB1 . "/loader" . TAB1 . "/growl" .
TAB2 . "/error" . TAB1 . "/form";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With