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