Constants inside quotes are not printed?

Posted by Lost_in_code on Stack Overflow See other posts from Stack Overflow or by Lost_in_code
Published on 2010-05-30T01:25:22Z Indexed on 2010/05/30 1:32 UTC
Read the original article Hit count: 148

Filed under:

This prints apple:

define("CONSTANT","apple");
echo CONSTANT;

But this doesn't:

echo "This is a constant: CONSTANT";

Why?

© Stack Overflow or respective owner

Related posts about php