@@ -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:
4144Supported variable Styles:
4245
43461 . Single index
44- ` $config[ 'key'] = 'value' ; `
47+ ``` php
48+ $config[ 'key'] = 'value' ;
49+ ```
4550
46512 . 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