valency Posted July 16, 2008 Share Posted July 16, 2008 Can someone explain to me how I can create or name a variable to print like this example: <input type="button" value="<?=ADD_MORE_LINES?>" actually prints out a button with the FACE VALUE AS " ADD MORE LINES " in this gigantic code Im looking at. How do i declare a variable like this that the =sign can then be asked to print it out.tHANKS.... Link to comment https://forums.phpfreaks.com/topic/115068-calling-variables-to-print-its-value-with-sign/ Share on other sites More sharing options...
trq Posted July 16, 2008 Share Posted July 16, 2008 This is a setting in the php.ini called short open tags. Link to comment https://forums.phpfreaks.com/topic/115068-calling-variables-to-print-its-value-with-sign/#findComment-591744 Share on other sites More sharing options...
valency Posted July 16, 2008 Author Share Posted July 16, 2008 Thanks. But You did not explain how i can actually declare this variable so I can call it to print later with a php tag. <?=something?>. which prints out the something variable...I know its a short tag for print. Where and how do i name a variable that i can call with the =sign too. Please. Link to comment https://forums.phpfreaks.com/topic/115068-calling-variables-to-print-its-value-with-sign/#findComment-591759 Share on other sites More sharing options...
wildteen88 Posted July 16, 2008 Share Posted July 16, 2008 Just declare/use a variable as you normally would do Link to comment https://forums.phpfreaks.com/topic/115068-calling-variables-to-print-its-value-with-sign/#findComment-591814 Share on other sites More sharing options...
PFMaBiSmAd Posted July 16, 2008 Share Posted July 16, 2008 The example in the first post is using a defined constant, probably in a language specific include file - http://php.net/define Link to comment https://forums.phpfreaks.com/topic/115068-calling-variables-to-print-its-value-with-sign/#findComment-591845 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.