Richard Lynch schrieb in Nachricht
>Try this:
>$my_string = "This is {MY_CONSTANT} and I love it!";
>Can't promise it will work, mind you...
>It's not all that common to bury constants in strings...  And is the extra
>. " K ". " that big a deal?  Seems a small price for cleaner code.

Thank's Richard,
you are right: it's not such a big deal - I was just surprised that I can't
integrate constants as variables.

A question - since english is not my first language - what do you mean with
>It's not all that common to bury constants in strings

Is something bad about it?
I would e. g. define our name with the formatting tags as a constant or
parts of query clauses which will never change but are often used.


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to