Skip to content

Commit a14b55f

Browse files
committed
add example.php and update readme
1 parent f391714 commit a14b55f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

index.php renamed to example.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?php
2-
32
include "vendor/autoload.php";
4-
5-
// $str = stringer("reza");
63
echo $str = stringer('azer')
74
->reverse()
85
->replace("a","i")

readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ $str = new RezaAr\Stringer\Stringer("php is awesome");
1414
// or
1515
$str = stringer("php is awesome");
1616

17-
$str->reverse()->display(); // return "emosewa si php"
18-
$str->substring(0,1)->display(); // return "r"
17+
$str->reverse()
18+
->display(); // return "emosewa si php"
19+
20+
$str->substring(0,1)
21+
->display(); // return "r"
1922

2023
?>
2124

0 commit comments

Comments
 (0)