Skip to content

Instantly share code, notes, and snippets.

@smhnaji
Last active July 9, 2020 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smhnaji/8ef52ab987e57b19db5e852dafd9e8a7 to your computer and use it in GitHub Desktop.
Save smhnaji/8ef52ab987e57b19db5e852dafd9e8a7 to your computer and use it in GitHub Desktop.

Array definition:

Arrays should be defined using [] instead of the old way: array().

Variable Naming conventions:

  • Form variables should be snake_case.
  • Database tables and columns should be snake_case.
  • PHP variables should be camelCase.
  • PHP classes should be PascalCase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment