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"; ] 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 Link to comment https://forums.phpfreaks.com/topic/241522-variables-in-if-statement/#findComment-1240611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.