244
edits
m (→Basic PHP) |
m (→Variables) |
||
| Line 63: | Line 63: | ||
PHP variables can store any data you wish. They start with a $ sign and contain alphanumerical characters, but must always start with a letter. | PHP variables can store any data you wish. They start with a $ sign and contain alphanumerical characters, but must always start with a letter. | ||
$example1 = | $example1 = "example"; | ||
echo $example1; | echo $example1; | ||
This will output the text | This will output the text "example". | ||
Variables as the name suggest can be altered after they're declared. | Variables as the name suggest can be altered after they're declared. | ||
$example1 = | $example1 = "altered example"; | ||
$example1 now contains | $example1 now contains "altered example" and the previous contents are gone. | ||
[[Category:Helpdesk]] | [[Category:Helpdesk]] | ||
edits