Question #6818
Submitted by Answiki
on 09/30/2022 at 08:34:36 PM UTC
How to remove tabs 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 |
---|
Icons proudly provided by Friconix.