Question #6817
Submitted by Answiki
on 09/30/2022 at 08:31:25 PM UTC
How to remove tabulations in a string in PHP?
Merged questions
Answer
Submitted by Answiki
on 09/30/2022 at 08:33:16 PM UTC
In PHP, to replace tabulations with spaces, one can use the str_replace function:
// Replace tabs by spaces
$string = str_replace("\t", ' ', $string);
See also:
- How to remove carriage returns from a string in PHP?
- How to replace carriage returns by spaces in a string in PHP?
Question by Answiki 09/30/2022 at 08:34:44 PM
How to remove tabs in strings in PHP?
Question by Answiki 09/30/2022 at 08:34:36 PM
How to remove tabs in a string in PHP?
Answer by Answiki on 09/30/2022 at 08:33:16 PM
In PHP, to replace tabulations with spaces, one can use the str_replace function:
// Replace tabs by spaces
$string = str_replace("\t", ' ', $string);
See also:
- How to remove carriage returns from a string in PHP?
- How to replace carriage returns by spaces in a string in PHP?
Question by Answiki 09/30/2022 at 08:31:25 PM
How to remove tabulations in a string in PHP?
| # | ID | Query | URL | Count |
|---|---|---|---|---|
| 0 | 12831 | en | https://en.ans.wiki/6817/how-to-remove-tabulations-in-a-string-in-php | 6 |
Icons proudly provided by Friconix.