/    Sign up×
Community /Pin to ProfileBookmark

Tabs not working in php

Anyone know how to get the tabs to work in php when t doesn’t work?

to post a comment
PHP

11 Comments(s)

Copy linkTweet thisAlerts:
@pyroJan 14.2004 — What is not working?
Copy linkTweet thisAlerts:
@daed17authorJan 14.2004 — echo "$testt$number";

something that simple isn't tabbing
Copy linkTweet thisAlerts:
@pyroJan 14.2004 — Did you hit view -> source? Tabs do not show up in the browser display, so my guess is that it is working, just not how you expected.
Copy linkTweet thisAlerts:
@daed17authorJan 14.2004 — I know they won't show up in the source view.

so just how do I make it work then?
Copy linkTweet thisAlerts:
@pyroJan 14.2004 — Hmm... should have worked. This worked fine for me:

[code=php]<?PHP
echo "footbar";
?>[/code]


Give this a try:

[code=php]echo $test."t".$number;[/code]
Copy linkTweet thisAlerts:
@daed17authorJan 15.2004 — Notta, nothing, zilch, zero....
Copy linkTweet thisAlerts:
@chadypuJan 16.2004 — im not familiar with tabs etc but dont you hafta use the <pre> tag around it to maintain spaces?

i dont know if it works with tabs but give it a try
Copy linkTweet thisAlerts:
@ShippeRJul 12.2020 — Hi, i found solution for problem when i need PHP explode string to array by separator = tab tabulator /t.



Right solution is

$var = preg_split("/[t]/", $string_text);

For future searching people like me.
Copy linkTweet thisAlerts:
@NachfolgerJul 12.2020 — @ShippeR#1620484

You revived a 16 year old thread. What a mad thing to do.
Copy linkTweet thisAlerts:
@VITSUSAJul 14.2020 — You should try to search on Google to find out the solutions first, there you can find multiple answers of this question. Click on the mentioned hyperlink to know more - https://bit.ly/2C1ODou
Copy linkTweet thisAlerts:
@Steve_R_JonesmoderatorJul 14.2020 — {"locked":true}
×

Success!

Help @daed17 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...