Since you are using comma seperated values, you can use str_getcsv
.
str_getcsv($line, ",", "'");
Will return:
Array
(
[0] => TRUE
[1] => 59
[2] => A large number is 10,000
)
More Related Contents:
- Split a comma-delimited string into an array?
- Convert backslash-delimited string into an associative array
- Convert a comma-delimited string into array of integers?
- PHP: Split string into array, like explode with no delimiter
- Explode string into array with no empty elements?
- Explode a paragraph into sentences in PHP
- How to include a PHP variable inside a MySQL statement
- PHP random string generator
- How to generate a random, unique, alphanumeric string?
- How to Truncate a string in PHP to the word closest to a certain number of characters?
- Highlight the difference between two strings in PHP
- PHP string replace match whole word
- Curly braces in string in PHP
- Insert string at specified position
- Php multiple delimiters in explode [duplicate]
- Truncate text containing HTML, ignoring tags
- php/mysql with multiple queries
- When to use strtr vs str_replace?
- Is there any way to detect strings like putjbtghguhjjjanika?
- Add … if string is too long PHP [duplicate]
- Can you append strings to variables in PHP? [duplicate]
- Concatenation with addition in it doesn’t work as expected
- Get characters after last / in url
- Explode string by one or more spaces or tabs
- PHP: Best way to extract text within parenthesis?
- How do I remove the last comma from a string using PHP?
- Using str_split on a UTF-8 encoded string
- How to remove all leading zeroes in a string
- How to prefix a positive number with plus sign in PHP
- Regex to match an IP address [closed]