User Tools

Site Tools


en:php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
en:php [2015/09/16 12:15]
wvdkuil [if () {}]
en:php [2015/09/17 07:32]
wvdkuil [Where are all your settings stored]
Line 3: Line 3:
 ==== Where are all your settings stored ​ ==== ==== Where are all your settings stored ​ ====
   * All settings, including your changes, are stored in one table  with the name **$SITE[]** ​   * All settings, including your changes, are stored in one table  with the name **$SITE[]** ​
-  * Every setting has its own name in the table: ​  ​$SITE[**'name'**] +  * Every setting has its own name in the table: ​  ​$SITE[**"name"**] 
-  * en it has a value $SITE['​name'​] = **'value'**+  * en it has a value $SITE['​name'​] = **"value"**
   * In PHP such a "​instruction"​ line is closed with a  **;**    * In PHP such a "​instruction"​ line is closed with a  **;** 
  
 So it should look like this: So it should look like this:
 <​code>​$SITE["​region"​] = "​europe";</​code>​ <​code>​$SITE["​region"​] = "​europe";</​code>​
-  * The **name** of the setting in this example is  **'region'**+  * The **name** of the setting in this example is  **region**
   * The **=** character tells the script to fill the  setting with the value after the **=**   * The **=** character tells the script to fill the  setting with the value after the **=**
-  * The **value** of the setting with the name **'region'**  thus becomes **'europe'**+  * The **value** of the setting with the name **region** ​ thus becomes **europe**
   * In PHP this value stays the same until some other instruction-line changes the value.   * In PHP this value stays the same until some other instruction-line changes the value.
  
en/php.txt · Last modified: 2015/12/02 07:13 by wvdkuil