How can I get PHP to evaluate a static variable in double quotes?
I want to do something like this:
log("self::$CLASS $METHOD entering");
I know this is an old question but I find it odd that noone has suggested the [sprintf][1] function yet.
[sprintf][1]
say:
you would use it with:
echo sprintf( '$a value is %s', Foo::$a );
so on your example its:
log( sprintf ( ' %s $METHOD entering', self::$CLASS ) );