Function prototypes in XML format?
Posted: Fri Jan 25, 2008 7:36 am
Hi all,
Don't ask why I want this...
Does anyone know if the function prototypes from the manual have ever been put in XML format? Something like:
This is for a huge project I'm scoping out at the moment and it won't really be possible in terms of time to actually do it myself 
Any pointers and suggestions gratefully received, as always.
Don't ask why I want this...
Code: Select all
<php-prototypes>
<functions category="string functions">
<function name="strip_tags">
<prototype>
<!-- string string strip_tags ( string $str [, string $allowable_tags ] ) -->
<function max-num-args="2" />
<args>
<arg type="string" optional="false">$str</arg>
<arg type="string" optional="true">$allowable_tags</arg>
</args>
<return type="string" />
</prototype>
</function>
</functions>
<functions category="array functions">
<function name="array_push">
<prototype>
<!-- int array_push ( array &$array , mixed $var [, mixed $... ] ) -->
<function max-num-args="3" />
<args>
<arg type="array" optional="false">$array</arg>
<arg type="mixed" optional="false">$var</arg>
<arg type="mixed" optional="true">$...</arg>
</args>
<return type="int" />
</prototype>
</function>
</functions>
</php-prototypes>
Any pointers and suggestions gratefully received, as always.