The tab character is \t
. Notice the use of "
instead of '
.
$chunk = "<html>\t<head>\t\t<title>\t</head>";
If the string is enclosed in double-quotes (“), PHP will interpret more escape sequences for special characters:
…
\t horizontal tab (HT or 0x09 (9) in ASCII)
Also, let me recommend the fputcsv() function which is for the purpose of writing CSV files.
Related Posts:
- \n or \n in php echo not print [duplicate]
- What is lexicographical order?
- Regex not operator
- working of \n in python [duplicate]
- Regex not operator
- Extract a substring using PowerShell
- Array to String PHP?
- Extract substring in Bash
- Regex not operator
- How do I check if a string contains a specific word?
- What is the difference between \r\n, \r, and \n? [duplicate]
- string to string array conversion in java
- What is the difference between \r\n, \r, and \n? [duplicate]
- Regex how to match an optional character
- How to remove punctuation in python?
- How do I properly compare strings in C?
- How to remove .html from URL?
- What is the difference between a “line feed” and a “carriage return”?
- How to convert an int to string in C?
- How do I check if a string contains a specific word?
- Invalid column count in CSV input on line 1 Error
- Python: TypeError: cannot concatenate ‘str’ and ‘int’ objects
- Ignoring upper case and lower case in Java
- Invalid column count in CSV input on line 1 Error
- how to replace quotation marks with \”
- How to replace all double quotes to single quotes using jquery?
- Convert character to ASCII numeric value in java
- What does strcmp() exactly return in C?
- Generate random string/characters in JavaScript
- PHP random string generator
- “[ ]” vs. “[[ ]]” in Bash shell
- How to parse a CSV file using PHP
- How to trim whitespace from a Bash variable?
- How to get the filename without the extension from a path in Python?
- sprintf like functionality in Python
- Is a new line = \n OR \r\n?
- Parsing a comma-delimited std::string
- C – The %x format specifier
- Lua string.format options
- Alphabet range in Python
- Mixing a PHP variable with a string literal
- ValueError: cannot index with vector containing NA / NaN values
- How to trim whitespace from a Bash variable?
- Converting string to Date and DateTime
- What is the difference between ‘ and ” in JavaScript?
- Center text in fixed-width field with stream manipulators in C++
- PHP: variables in strings without concatenation
- C# – Illegal characters in path
- Mips how to store user input string
- PadLeft function in T-SQL
- bash : Bad Substitution
- Multi-line strings in PHP
- Lua read beginning of a string
- Uncaught Error: Call to undefined function mysql_escape_string()
- How do I print my Java object without getting “SomeType@2f92e0f4”?
- How can I process each letter of text using Javascript?
- How can I capture the result of var_dump to a string?
- How to convert string to boolean php
- How to import csv file in PHP?
- Haskell: Converting Int to String
- Passing string to a function in C – with or without pointers?
- Check if URL has certain string with PHP
- Lua String replace
- Trim a string in C [duplicate]
- How to remove first character from C-string?
- Limit String Length
- Standard function to replace character or substring in a char array?
- Difference between char* and char** (in C)
- Insert string at specified position
- Extract filename and extension in Bash
- Meaning of #{ } in Ruby?
- Taking a new line using printf in java? Is %n correct?
- Remove empty array elements
- How to count instances of character in SQL Column
- Export User Info to CSV from Front End
- file_exists() acting weird
- Export WordPress Table to CSV from page
- Custom Plugin For Converting CSV To MySQL
- Why is file_get_contents returning page source?
- code is working properly in Core PHP but writing coding in WordPress
- How to retrieve current wordpress profile page URL?
- Cron job update csv, need help solving :-)
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Download full html page with CSV export plugin
- Creating a CSV with PHP inside the plugin directory
- Can’t upload CSV file to plugin directory using custom upload form in admin panel
- Creating custom page template from existing PHP site
- ‘pre_user_query’ interfering with user export
- Custom CSV exporter – Cannot modify header information – headers
- Export WordPress User Meta to CSV/Excel
- How do I get data from my database into my Custom Export Field
- Unable to update the meta boxes with multiple fields
- Updating the database after parsing CSV document
- Having issue on Loading Meta Data From CSV to CPT
- Front end/Database connection in WP
- Force CSV download with template_redirect
- Create csv file in plugin
- Reading CSV values and showing them in PHP
- Import users and custom user meta from csv
- Creating posts with php-script + csv