darkfreaks Posted February 10, 2010 Share Posted February 10, 2010 solved Quote 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? Quote 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";} ?> Quote 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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.