Try preg_split.
$exploded = preg_split('@/@', '1/2//3/', -1, PREG_SPLIT_NO_EMPTY);
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
- Array Comparision with a string PHP
- Remove empty array elements
- Parse query string into an array
- Filter array by its keys using an array of allowed keys
- Array to String PHP?
- Convert flat array to a delimited string to be saved in the database
- String with array structure to Array [duplicate]
- Remove all elements from array that do not start with a certain string
- php implode (101) with quotes
- Recursively remove empty elements and subarrays from a multi-dimensional array
- use strings to access (potentially large) multidimensional arrays
- How to split a long string without breaking words?
- String contains any items in an array (case insensitive)
- Merge array items into string
- How to cast array elements to strings in PHP?
- Search and replace multiple values with multiple/different values in PHP5?
- How to filter an associative array comparing keys with values in an indexed array?
- Add a prefix to each item of a PHP array
- Checking if ANY of an array’s elements are in another array
- PHP get values from SimpleXMLElement array
- How to implode array with key and value without foreach in PHP
- How to convert array values to lowercase in PHP?
- Convert a String to Variable
- Most efficient way to search for object in an array by a specific property’s value
- Search and replace multiple values with multiple/different values in PHP?
- Split a string with two delimiters into two arrays (explode twice)