In the latest from phpVolcano.com today, an article has been posted on how he has set up his Vim with a special feature. He inputs a command, something similar to ":!phpm in_array" to get a result of "bool in_array ( mixed $needle, array $haystack, [bool $strict] ) ". How did he do it? Well, read on to find out.
With the help of a few simple PHP functions, the DocBook functionality compiled into your PHP build, you can recreate a similar script using just a few easy function calls (four in the parsing script and four in the file read script) to open the DocBook format, find what you're looking for, then send the data back to the script for display.
I love simple, easy code such as this - it's nice to see PHP being used for something outside of the web environment, as well as being used now where, previously, Perl would have been king...




