Skip to content

Commit 119448c

Browse files
committed
- update readme.MD
1 parent ccfb908 commit 119448c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.MD

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ use Lutdev\TOC\TableContents
4747
or you can download package and include it via ```require```
4848
### Usage
4949
```php
50+
$tableContents = new TableContents();
51+
```
52+
```php
5053
//return string table contents
51-
TableContents::tableContents($text);
54+
$tableContents->tableContents($text);
5255
```
5356

5457
Table of contents have next structure:
@@ -93,7 +96,7 @@ Table of contents have next structure:
9396

9497
```php
9598
//Add ID attribute to the headers. Need for anchors.
96-
TableContents::headerLinks($text)
99+
$tableContents->headerLinks($text)
97100
```
98101

99102
## Feedback

0 commit comments

Comments
 (0)