im new the php so bear with me. ok anyways, i was just curious on how PHP can use the expat library which i know was written in C. i was doing some searching and i came across a few expat/php header files and one (a few really) line caught my attention. it went something like this:
PHP_FUNCTION(xml_parser_create);
there were a few others similar which basically declared each of the expat functions with the macro "PHP_FUNCTION".
this leads me to believe the bridging php and C/C++ is simply a matter of redeclaring functions. now, i have a library that i would like to make available to php users, is there some kind of article i could use to help me with this stuff cause that would be kickass. thanks.