PHP DEFINE literal in a double quoted string

Simple $variables expand if they're in a DOUBLE quoted string
ex: "Today's Date: $DateVariable"

if i have a DEFINE literal    is there any syntax escapement to get them to expand (be replaced) in a double quoted string?


echo "The mode value is  DAILY_MODE ";

echo "The mode value is ".  DAILY_MODE;

Who is Participating?
Beverley PortlockConnect With a Mentor Commented:
Stick with echo "The mode value is ".  DAILY_MODE;. Variable expansion is for variables and literals are not variables
Scott MadeiraConnect With a Mentor Commented:
Not that I am aware of or could find online.  I think you are stuck with option 2: echo "The mode value is ".  DAILY_MODE;
willsherwoodAuthor Commented:
thanks all
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.