![]() |
best way to do tabs in php?
other than (need to do 5 or 6 of them
echo "\t"; I know people has PHP_EOL instead of "\n" |
I don't think there's a PHP_EOL equivalent for tabs.
PHP_EOL was added to help prevent problems with \n vs \r\n (depending on your local system). Tabs don't have that problem so I doubt they added a predefined constant for tabs. |
< pre >asdf\tasdf</ pre >
|
Try using single quote '\t' instead of "\t"
Code:
echo '\t\t\t\t'; |
what's wrong with \t? you can always define your own constant, call it TAB or something?
|
All times are GMT -7. The time now is 06:42 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123