PMCORE-3844

This commit is contained in:
Julio Cesar Laura Avendaño
2022-05-26 14:56:23 +00:00
parent c216e19311
commit 2a65fa9341
82 changed files with 300 additions and 552 deletions

View File

@@ -60,7 +60,7 @@ class StringHelper {
$ret=array();
$len=strlen($str);
for ($i=0; $i < $len; $i++) {
$ret[] = $str{$i};
$ret[] = $str[$i];
}
return $ret;
}
@@ -177,7 +177,7 @@ class StringHelper {
trigger_error("substring(), Endindex out of bounds must be $startpos<n<".($len-1), E_USER_ERROR);
}
if ($startpos === $endpos) {
return (string) $string{$startpos};
return (string) $string[$startpos];
} else {
$len = $endpos-$startpos;
}