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