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>
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:
foo("bar", "baz"); // second argument was added in PHP 4.0.3
<note> <simpara> The second parameter was added in PHP 4.0.3. </simpara> </note>
Document examples always with the following structure:
<para> <example> <title /> <programlisting> <![CDATA[ <?php echo "foo\n"; ?> ]]> </programlisting> <para> The output is: </para> <screen> <![CDATA[ foo ]]> </screen> </example> </para>