CONSTANTS and PHP Class Definitions. Using define('MY_VAR', 'default value'). INSIDE a class definition does not work as expected. You have to use the PHP keyword 'const' and initialize it with a scalar value -- boolean, int, float, string (or array in PHP 5.6+) -- right away.
Prepositional Phrases. Do not use a comma between separate phrases unless they are in a series. A comma may also set off a single prepositional phrase at the beginning to make the sentence clear. A comma is recommended after any introductory prepositional phrase of more than four words. Correct: Under the kitchen table the dog cowered. (Single short, clear phrase.
Deciding when a comma is necessary. If two or more adjectives are coordinate, a comma is used to separate them to provide clarity. If you can replace the comma with the word âandâ and reverse the order of the adjectives, the comma is necessary. Check out the below examples: Example 1 (CORRECT): Slippery, treacherous roads are common after a big snowfall.