Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[]] is a selfnotation of php coding
- [[$Name = ''The variable under the [name]'' ]] for example ''Bob''
- This one will be in the form of a string variable meaning it can't be combined with numbers or actual value.
- You can combine strings using:[ ''String part, '' . $name; ] and that will result in:[ String part, Bob] .
- [+] Means add on numbers
- [-] Means minus number
- [/] Divide
- [*] Multiply
- example: $A == $B means variable A has the same value as variable B.
- This will be a question to see if the value is true or fals. If the value for instance A = 3 + 5 and B = 3 then it's fals.
- while A = 5 + 3 while B = 8 then it did be true.
- Checking if it's not equal would be with[$A !== $B]
- Logical rythems like [ $A and $B ] if both are true
- [ $A or $b] if one of them is true or both.
- The ''if true'' system:
- [ $LoggedIn = true;
- if ($LoggedIn == true) {
- Echo ''You are logged in'';
- } else {
- echo '' Please log in''
- } ]
- Now in this example it would suggest you are logged in because $LoggedIn is set to true. So the result is ''You are Logged in''
- if we did change that to false it did look like this:
- [ $LoggedIn = false;
- if ($LoggedIn == true) { ] etc. so this one would result into ''Please Log in''
Add Comment
Please, Sign In to add comment