1<documentation title="Variable Names">
2    <standard>
3    <![CDATA[
4    Private member variable names should be prefixed with an underscore and public/protected variable names should not.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: Proper member variable names.">
9        <![CDATA[
10class Foo
11{
12    public $<em>publicVar</em>;
13    protected $<em>protectedVar</em>;
14    private $<em>_privateVar</em>;
15}
16        ]]>
17        </code>
18        <code title="Invalid: underscores used on public/protected variables and not used on private variables.">
19        <![CDATA[
20class Foo
21{
22    public $<em>_publicVar</em>;
23    protected $<em>_protectedVar</em>;
24    private $<em>privateVar</em>;
25}
26        ]]>
27        </code>
28    </code_comparison>
29</documentation>
30