willsherwood
asked on
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?
DEFINE DAILY_MODE =1
echo "The mode value is DAILY_MODE ";
otherwise:
echo "The mode value is ". DAILY_MODE;
thanks
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?
DEFINE DAILY_MODE =1
echo "The mode value is DAILY_MODE ";
otherwise:
echo "The mode value is ". DAILY_MODE;
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER