Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
siddik-web committed Apr 20, 2022
1 parent b59dff0 commit f978c59
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,35 @@ include 'vendor/autoload.php';
use SiddikWeb\Stringify\Stringify;
echo Stringify::of(" Hello ")->lower()->trim()->getText();
```
# Available Functions
**Get Text:**
```
getText()
```
**Uppercase:**
```
upper()
```
**Lowercase:**
```
lower()
```
**Trim:**
```
trim()
```
**Left Trim:**
```
ltrim()
```
**Right Trim:**
```
rtrim()
```
**Capitalize:**
```
capitalize()
```
4 changes: 2 additions & 2 deletions src/Stringify.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function trim() : Stringify
*
* @since 1.0.4
*/
public function lTrim() : Stringify
public function ltrim() : Stringify
{
$this->text = ltrim($this->text);

Expand All @@ -113,7 +113,7 @@ public function lTrim() : Stringify
*
* @since 1.0.4
*/
public function rTrim() : Stringify
public function rtrim() : Stringify
{
$this->text = rtrim($this->text);

Expand Down

0 comments on commit f978c59

Please sign in to comment.