Over a million developers have joined DZone.

My PHP Naming Convention

DZone's Guide to

My PHP Naming Convention

· ·
Free Resource
From: http://codex.gallery2.org/Gallery3:Coding_Standards

Files: lower_case
Classes: Proper_Case (nouns)
Variables: lower_case (short and meaningful)
Functions: lower_case (verbs), questions with 'is_' preffix (is_enabled)
Constants: UPPER_CASE
DB Tables: lower_case (pluralized nouns)
DB Fields: lower_case (singular). Dates with '_on' suffix, questions with 'is_' preffix, user related with '_by' suffix

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}