Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //1.
- if(condition)
- $variable = true;
- else
- $variable = false;
- //or...
- //2.
- if(condition)
- {
- $variable = true;
- }
- else
- {
- $variable = false;
- }
- //3.
- if(condition) $variable = true;
- else $variable = false;
- //4.
- if(condition) {
- $variable = true;
- }
- else {
- $variable = false;
- }
- //which do you like best? 1, 2, 3 or 4?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement