Jaynesh Posted July 9, 2011 Share Posted July 9, 2011 Hello Is it possible to have variables in if statements? For e.g if ( $i = 1 ) { $post = "hello"; } else { $post = "bye"; ] Quote Link to comment https://forums.phpfreaks.com/topic/241522-variables-in-if-statement/ Share on other sites More sharing options...
Drummin Posted July 9, 2011 Share Posted July 9, 2011 Absolutely Quote Link to comment https://forums.phpfreaks.com/topic/241522-variables-in-if-statement/#findComment-1240611 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.