What about adding a regexp that will link all the PHP functions in the examples to their man page ?
That function should be slightly modified as PHP functions are highlighted the same as user-defined functions.
I vote for it - by modification of highlight_php() website function.
Some code for this is available in the extended CHM generator. The problem is that you need a complete list of built in functions for that to work in memory (or you need to check if a file exists which documents that function) runtime. The second option should not be selected, since we made our best possible to eliminate file_exists() checks from the website code, and we do a lot... The first option means that the website code should have a list of all the functions somewhere in memory for all the page requests. And that list should be generated and populated somehow to all mirrors...
I am awaiting the coming livedocs CVS module on cvs.php.net, so we can incorporate cool ideas into that stuff (since livedocs has the function list in an SQLite table it would not be easy to query that). Now you would need to add some code to the build system to generate a useable list (PHP array probably) and include that on all the manual pages.
Goba
