Skip to content

Commit

Permalink
fix: StringHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho committed Aug 23, 2020
1 parent 3b5c8e8 commit bc895e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,17 +245,17 @@ class m170810_084615_create_post extends Migration
### String Helper

```php
yiier\helpers\String::after('@', '[email protected]'); // 'online.ge'
yiier\helpers\StringHelper::after('@', '[email protected]'); // 'online.ge'

yiier\helpers\String::afterLast('[', 'sin[90]*cos[180]');// '180]'
yiier\helpers\StringHelper::afterLast('[', 'sin[90]*cos[180]');// '180]'

yiier\helpers\String::before('@', '[email protected]'); // 'biohazard'
yiier\helpers\StringHelper::before('@', '[email protected]'); // 'biohazard'

yiier\helpers\String::beforeLast('[', 'sin[90]*cos[180]'); // 'sin[90]*cos'
yiier\helpers\StringHelper::beforeLast('[', 'sin[90]*cos[180]'); // 'sin[90]*cos'

yiier\helpers\String::between('@', '.', '[email protected]'); // 'online'
yiier\helpers\StringHelper::between('@', '.', '[email protected]'); // 'online'

yiier\helpers\String::betweenLast('[', ']', 'sin[90]*cos[180]'); // '180'
yiier\helpers\StringHelper::betweenLast('[', ']', 'sin[90]*cos[180]'); // '180'
```

### Setup Helper
Expand Down
2 changes: 1 addition & 1 deletion src/String.php → src/StringHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace yiier\helpers;

class String
class StringHelper
{
/**
* after('@', '[email protected]');
Expand Down

0 comments on commit bc895e0

Please sign in to comment.