I come from Java / Objective-C to PHP and find it horrible. I mean, PHP is nice, really. But when you look at a bunch of variables, you don’t know: Is that an number? Is that an string? Or ist that even a fancy object that can perform actions when calling methods on it?
So I wonder if there are helpful re-usable naming conventions for variables to help figure out if something is an object, or if something is just a boring variable. I’d say if something is an object, i.e. an instance of a class, the first character must be BIG. But it’s just a guess. Hope to read some tips from PHP pros 🙂
As in other languages, there is no single coding standard in PHP. You can, among others (see the comments), check out the Zend coding standards, they are quite highly regarded as they are very close to (and partly identical with) the PHP core development team.