|
|
|
|
|
|
Function settingsSetSimpleValue | Language: PHP
|
Syntax
| settingsSetSimpleValue(Filename, VariableName, Value) |
Parameters
| STRING | Filename | Name of the settings file.
| | STRING | VariableName | Name of the variable to update or to add.
| | STRING | Value | Value to save. |
Return value
Description
Set the value of a variable in a configuration file.
Example
A file settings.mem is as follow:
variable1=value1
variable2=value2
|
To change the value of the first variable:
settingsSetSimpleValue("settings.mem", "variable1", "newValue");
|
After the call of the function, the settings file will look as follow:
variable1=newValue
variable2=value2
|
For more information about configuration files: {link:SETTINGSTOARRAY} and {link:SETTINGSSTRINGTOARRAY}.
|
|
|
|