Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}