| @@ 1542-1549 (lines=8) @@ | ||
| 1539 | return strtoupper($str); |
|
| 1540 | } |
|
| 1541 | ||
| 1542 | public function ucfirst($str) |
|
| 1543 | { |
|
| 1544 | if (function_exists('mb_strtoupper')) { |
|
| 1545 | return mb_strtoupper($this->substr($str, 0, 1)) . $this->substr($str, 1, $this->strlen($str)); |
|
| 1546 | } |
|
| 1547 | ||
| 1548 | return ucfirst($str); |
|
| 1549 | } |
|
| 1550 | ||
| 1551 | public function lcfirst($str) |
|
| 1552 | { |
|
| @@ 1551-1558 (lines=8) @@ | ||
| 1548 | return ucfirst($str); |
|
| 1549 | } |
|
| 1550 | ||
| 1551 | public function lcfirst($str) |
|
| 1552 | { |
|
| 1553 | if (function_exists('mb_strtolower')) { |
|
| 1554 | return mb_strtolower($this->substr($str, 0, 1)) . $this->substr($str, 1, $this->strlen($str)); |
|
| 1555 | } |
|
| 1556 | ||
| 1557 | return lcfirst($str); |
|
| 1558 | } |
|
| 1559 | ||
| 1560 | public function ucwords($str) |
|
| 1561 | { |
|