Skip to content

Commit 4ec148c

Browse files
authored
Improve formatting
Improve code formatting and correct typographic error
1 parent 3a2a96a commit 4ec148c

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ The library can be used by applications that use php array to store configuratio
1414
## Usage
1515
* `include` the class library in your script
1616

17-
```require_once 'class-array-config-writer.php';```
17+
```php
18+
require_once 'class-array-config-writer.php';```
1819

1920
**The class supports autoload via composer**
2021

@@ -30,9 +31,11 @@ Where :
3031
* **$variable_name** (string) : The variable name of the array to update.
3132
* **$auto_save** (boolean) : Whether the library should automatically save the changes.
3233

33-
We can now updating values:
34+
We can start updating values:
3435

35-
```$config_writer->write('key' , value );```
36+
```
37+
$config_writer->write('key' , value );
38+
```
3639

3740
**Notes:**
3841
* You can set value to any php variable type.
@@ -41,15 +44,21 @@ We can now updating values:
4144
Supported variable Styles:
4245

4346
1. Single index
44-
` $config[ 'key'] = 'value' ;`
47+
```php
48+
$config[ 'key'] = 'value' ;
49+
```
4550

4651
2. Multi dimensional
4752

48-
* `$config['key1']['key2'] = 'value';`
53+
* ```php
54+
$config['key1']['key2'] = 'value';
55+
```
4956

5057
**note** You can not use the library to update the following format:
5158

52-
`$config = array( 'key' => 'value' );`
59+
```php
60+
$config = array( 'key' => 'value' );
61+
```
5362

5463
**Notes:**
5564
* The library expect the variable to be indexed.

0 commit comments

Comments
 (0)