darkfreaks Posted February 10, 2010 Share Posted February 10, 2010 solved Link to comment https://forums.phpfreaks.com/topic/191674-putting-variable-inside-single-quotes/ Share on other sites More sharing options...
Maq Posted February 10, 2010 Share Posted February 10, 2010 solved Do you mind sharing so others can reference this thread if they come across the same problem? Link to comment https://forums.phpfreaks.com/topic/191674-putting-variable-inside-single-quotes/#findComment-1010341 Share on other sites More sharing options...
darkfreaks Posted February 10, 2010 Author Share Posted February 10, 2010 Solution: <?php if(''.$reason.'Put Reason Here'){ echo "match found";} ?> Link to comment https://forums.phpfreaks.com/topic/191674-putting-variable-inside-single-quotes/#findComment-1010369 Share on other sites More sharing options...
premiso Posted February 11, 2010 Share Posted February 11, 2010 Solution: <?php if(''.$reason.'Put Reason Here'){ echo "match found";} ?> You do realize that that if statement will always return true right? Link to comment https://forums.phpfreaks.com/topic/191674-putting-variable-inside-single-quotes/#findComment-1010848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.