I want to do an old C/C++ trick where I can conditionally define a function. for instance I want to conditionally output a string (debugging) so I can have some outputstring() interspersed in my code. Instead of adding/removing these during development, I want to turn them on/off.
Is there a way to conditionally define the following function so that if its not wanted the function gets turned into a NULL argument that never gets called?
function outputstring($string)
{
echo "$string";
}
Thanks,
Pete