mirror of
https://gitlab.com/CodeSolutionsProject/CodeGuide
synced 2026-02-14 09:01:35 +01:00
Initial commit
This commit is contained in:
27
langs/php/general.md
Normal file
27
langs/php/general.md
Normal file
@@ -0,0 +1,27 @@
|
||||
- Version 0.1 -
|
||||
|
||||
#### General grammar of lang
|
||||
|
||||
- All lines finish with a semicolon (;)
|
||||
|
||||
- Vars are append with a dollar sign ever -> $x is x variable
|
||||
|
||||
- Vars aren't defined before use. Doesn't name Int,String,.... ever
|
||||
|
||||
- When echoing or using functions, you can use 'text' or "text", but in first ones you can't embed a var. Example:
|
||||
|
||||
'Hello $x' -> Hello $x
|
||||
|
||||
"Hello $x" -> Hello World
|
||||
|
||||
#### Comments
|
||||
|
||||
```
|
||||
// This is a single line comment
|
||||
/* This is
|
||||
a multiline comment */
|
||||
```
|
||||
|
||||
#### Types of vars
|
||||
|
||||
Nothing to show here.
|
||||
Reference in New Issue
Block a user