Sorry, that’s not the way constants in PHP work. You can put variables in double quotes and heredocs but not constants.
More Related Contents:
- What does the PHP error message “Notice: Use of undefined constant” mean?
- PHP | define() vs. const
- PHP Constants Containing Arrays?
- Can I get CONST’s defined on a PHP class?
- How do I turn off PHP Notices?
- Accessing a class constant using a simple variable which contains the name of the constant
- Dynamic constant name in PHP
- Can I use string concatenation to define a class CONST in PHP?
- Redefining constants in PHP
- Include constant in string without concatenating
- PHP 5: const vs static
- Write CSV To File Without Enclosures In PHP
- Which is faster? Constants, Variables or Variable Arrays
- how to make css work with php? [closed]
- What to put in database columns when creating registration/login system? (xampp)
- How can I run a PHP script in the background after a form is submitted?
- php: recreate and display an image from binary data
- jQuery – Call ajax every 10 seconds
- PHP read sub-directories and loop through files how to?
- How do I give each registered user their own url using PHP?
- PHP Array to CSV
- LOAD DATA LOCAL INFILE forbidden in… PHP
- Redirect with PHP after ajax call
- Loading view outside view folder with CodeIgniter
- How to remove “via” and server name when sending mails with PHP?
- Sort array in PHP by value and maintain index association
- Calculate the number of months between two dates in PHP?
- Merge two flat indexed arrays of equal size so that values are pushed into the result in an alternating fashion
- Fastest way of deleting a value in a comma separated list
- Dynamically create PHP object based on string