I'd like to define values that are expanded inside strings, for example:
define("EXPAND_THIS","Expanded Stuff");
echo(" Here comes the stuff EXPAND_THIS");
Is there any way to do this?
Thanks
BH
define() use in strings
Moderator: General Moderators
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: define() use in strings
You could remove it from the quotes:
Cheers,
Kieran
Code: Select all
define("EXPAND_THIS","Expanded Stuff");
echo(" Here comes the stuff ".EXPAND_THIS);Kieran
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA