GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   best way to do tabs in php? (https://gfy.com/showthread.php?t=1061355)

fris 03-16-2012 05:56 AM

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"

u-Bob 03-16-2012 06:05 AM

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.

georgeyw 03-16-2012 06:12 AM

< pre >asdf\tasdf</ pre >

Voodoo 03-16-2012 06:19 AM

Try using single quote '\t' instead of "\t"
Code:

echo '\t\t\t\t';

woj 03-16-2012 06:23 AM

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