For googlers: strtok is better for that:
echo strtok("The quick brown fox", ' ');
Related Contents:
- What is the difference between single-quoted and double-quoted strings in PHP?
- How to include a PHP variable inside a MySQL statement
- How to generate a random, unique, alphanumeric string?
- Remove empty array elements
- startsWith() and endsWith() functions in PHP
- PHP – concatenate or directly insert variables in string
- Why does PHP consider 0 to be equal to a string?
- Highlight the difference between two strings in PHP
- Using str_replace so that it only acts on the first match?
- Replacing accented characters php
- How to replace Microsoft-encoded quotes in PHP
- Remove new lines from string and replace with one empty space
- Remove excess whitespace from within a string
- Convert backslash-delimited string into an associative array
- URL Friendly Username in PHP?
- How to remove accents and turn letters into “plain” ASCII characters? [duplicate]
- How can strip whitespaces in PHP’s variable?
- Get PHP class property by string
- How do I remove all specific characters at the end of a string in PHP?
- How to remove non-alphanumeric characters?
- How to mimic Stack Overflow Auto-Link Behavior
- PHP convert string to hex and hex to string
- String with array structure to Array [duplicate]
- In PHP, what does “
- Explode string into array with no empty elements?
- Check whether $_POST-value is empty
- Add … if string is too long PHP [duplicate]
- how to extract links and titles from a .html page?
- Truncate text containing HTML, ignoring tags
- How to select first 10 words of a sentence?
- Fastest way of deleting a value in a comma separated list
- Generate SEO friendly URLs (slugs) [closed]
- Is a new line = \n OR \r\n?
- Remove a string from the beginning of a string
- PHP function to delete all between certain character(s) in string
- How do you pull first 100 characters of a string in PHP
- PHP: How to sort the characters in a string?
- Title case a string containing one or more last names while handling names with apostrophes
- Structure of a Serialized PHP string
- How to get int instead string from form?
- Get characters after last / in url
- Do I need to escape backslashes in PHP?
- How can I remove part of a string in PHP? [closed]
- How does PHP compare strings with comparison operators?
- PHP get values from SimpleXMLElement array
- Check if URL has certain string with PHP
- Most efficient way to get next letter in the alphabet using PHP
- Multi-byte safe wordwrap() function for UTF-8
- Get last whole number in a string
- PHP – Add link to a URL in a string