From 119448c76d61b96a9c34d8048e1d4ee0bd803754 Mon Sep 17 00:00:00 2001 From: alutskevich Date: Fri, 5 May 2017 23:09:50 +0300 Subject: [PATCH] - update readme.MD --- README.MD | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index c47b93e..d2be9ed 100644 --- a/README.MD +++ b/README.MD @@ -47,8 +47,11 @@ use Lutdev\TOC\TableContents or you can download package and include it via ```require``` ### Usage ```php +$tableContents = new TableContents(); +``` +```php //return string table contents -TableContents::tableContents($text); +$tableContents->tableContents($text); ``` Table of contents have next structure: @@ -93,7 +96,7 @@ Table of contents have next structure: ```php //Add ID attribute to the headers. Need for anchors. -TableContents::headerLinks($text) +$tableContents->headerLinks($text) ``` ## Feedback