update strings class with split counter method

This commit is contained in:
Clemens Schwaighofer
2022-07-29 13:19:45 +09:00
parent bcdb877d90
commit 9a3ea2f7db
3 changed files with 161 additions and 12 deletions

View File

@@ -68,7 +68,15 @@ print "Convert: $string with $split to: "
. \CoreLibs\Convert\Strings::splitFormatString($string, $split)
. "<br>";
$test_splits = [
'',
'2',
'2-2',
'2-3-4',
];
foreach ($test_splits as $split) {
print "$split with count: " . \CoreLibs\Convert\Strings::countSplitParts($split) . "<br>";
}
// error message
print $log->printErrorMsg();