Is there a preferred way to name variables in PHP?

Viewed 8946

I am fairly new to PHP and I was wondering if there was a standard convention to name php variables. I'm used to using camel case when naming variables, but I see a lot of underscores in PHP examples.

Is there a standard naming convention that most people use for PHP?

$buildingHeight OR $building_height

2 Answers
Related