This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:web_development:media:javascript [2021/12/21 17:46] mag [PHP Variables] |
en:web_development:media:javascript [2023/08/16 09:33] (current) |
||
---|---|---|---|
Line 150: | Line 150: | ||
* Variables in PHP are always represented by < | * Variables in PHP are always represented by < | ||
* In this case, we have a variable named ' | * In this case, we have a variable named ' | ||
+ | * Add a command to display the variable. | ||
+ | |||
+ | < | ||
+ | $page = " | ||
+ | echo $page; | ||
+ | include(" | ||
+ | include(" | ||
+ | ?></ | ||
+ | |||
+ | * When you save, upload and run the code, you'll see the word ' | ||
+ | * The code in ' | ||
* Now open ' | * Now open ' | ||
< | < |