Jump to content

Does PHP have a preprocessor like C / C++?


roopurt18

Recommended Posts

I have a function that should receive as it's arguments some of the magic constants (__FILE__, __LINE__, etc.).  I'd like to be lazy and not have to remember the order of the arguments.  Is there any way I can set up the function call like a #define in C / C++ so that it is replaced in the PHP file but not actually called in the define()?

Thanks!
Link to comment
https://forums.phpfreaks.com/topic/27259-does-php-have-a-preprocessor-like-c-c/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.