parse an ids-string to an array

v1.1.0 2020-06-30 08:42 UTC

This package is auto-updated.

Last update: 2024-11-29 05:21:20 UTC


README

Software License Latest Stable Version Build Status Packagist Downloads

Idea

For PHP CLI or Api, if you want to have an option for one or more ids (integers), this very small package is a helper, which parses a string to an array of ids.

Usage

The usage is very simple:

$ids = '1-3';
$array = Ids::parse($ids); // [1,2,3]

License

The MIT License (MIT). Please see License File for more information.