strannyi_tip / string-list
Simple list of strings
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires (Dev)
- codeception/codeception: 5.1.x-dev
- codeception/module-asserts: *
- codeception/module-phpbrowser: *
- strannyi_tip/string: dev-main
This package is auto-updated.
Last update: 2025-04-20 17:34:55 UTC
README
string-list
Simple list of strings
usage:
$list = new StringList(); $list[0] = 'string'; $list[1] = new SimpleString('string');
$list = new StringList(new SimpleString('string'));
$list = new StringList('one', 'two', new SimpleString('three'));
$list = new StringList(); $list ->fromEnumerationString('one,two,three'); echo $list[0];//one
$list = new StringList(); $list ->useSeparator('|') ->fromEnumerationString('one|two|three'); echo $list[1];//two
$list = new StringList(); $list[] = new SomeStringableClass('string');
Also
Caution
Use int-based indexes only!