Try about using:
$output = preg_split('/ (@|vs) /', $input);
More Related Contents:
- PHP string explode with regular expression? [closed]
- Split a comma-delimited string into an array?
- Convert backslash-delimited string into an associative array
- PHP explode the string, but treat words in quotes as a single word
- Convert a comma-delimited string into array of integers?
- Unexpected bracket ‘[‘ – PHP [duplicate]
- PHP: How can I explode a string by commas, but not wheres the commas are within quotes?
- PHP: Split string into array, like explode with no delimiter
- Explode string into array with no empty elements?
- Explode string by one or more spaces or tabs
- Add a prefix to each item of a PHP array
- Explode string on commas and trim potential spaces from each value
- Explode a paragraph into sentences in PHP
- How to limit the elements created by explode()
- Split a string with two delimiters into two arrays (explode twice)
- Is there an equivalent in C++ of PHP’s explode() function? [duplicate]
- BETTER WAY #PHP MVC [closed]
- Max size of URL parameters in _GET
- Should I manually check for errors when calling “mysqli_stmt_prepare”?
- PHP: producing relative date/time from timestamps
- What is PHPSESSID?
- Dealing with timezones in PHP
- Include constant in string without concatenating
- Outputting all PHP errors to database not error_log
- Excel – Getting the Top 5 data of a column and their matching title but produces duplicates
- What is autoload in php? [duplicate]
- Best way to check for positive integer (PHP)?
- set_error_handler() doesn’t work for FATAL error
- How to get last inserted id from table MySQL [duplicate]
- PHP/GD – transparent background