When you work on phpdoc XML files, you should stick to these conventions, to ease the team work in the module.
Make sure note elements are always children of the main element in a file, unless the note belongs to a specific item in the text, such as an example:
<para>
<example>
<title />
<programlisting/>
<para>
The output is:
</para>
<screen />
<note>
<simpara>
This example only works on Unices.
</simpara>
</note>
</example>
</para>
If there is something dangerous to document such as the chroot(), or when something can be seen as a weirdness in the language such as weird auto-conversion of types, use the <caution> element. The <tip> can be used in cases where you might want to document a performance issue.
For comments in example, use // for single line comments (preferable above the lines of code the comment comments on), and use /* .. */ for multiline comments:
<programlisting role="php"> // This line execute foo foo(); /* The next few lines also execute foo, but in a * weird way */ $var = 'foo'; $var(); </programlisting>
If an example uses arguments specific to a newer version of PHP, it is helpful to note this in the example:
New arguments are denoted in the main text of the entry using the form:
<note> <simpara> The second parameter was added in PHP 4.0.3. </simpara> </note>
Document examples always with the following structure: