d3vy/multiexplode

This package is abandoned and no longer maintained. The author suggests using the sbolch/multiexplode package instead.

Splits a string (like explode function) by multiple limiters.

Fund package maintenance!
Ko Fi

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:package

v1.0.1 2019-06-20 09:24 UTC

This package is auto-updated.

Last update: 2022-11-06 22:17:58 UTC


README

Splits a string (like explode function) by multiple limiters.

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require d3vy/multiexplode

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Usage

$results = multiexplode(array('/', '://', ':', '?', '#', ':'), 'http://url.com/example:80?query#hash');

returns:

Array
(
    [0] => http
    [1] => url.com
    [2] => example
    [3] => 80
    [4] => query
    [5] => hash
)