misterm Posted May 19, 2008 Share Posted May 19, 2008 Hello I am trying to set 2 variable with one if statement: if ($lang == "englidh") { $cardTitle = $englishTitle $sendLang = "en" ;} I'm missing something really simple to separate the 2 avriables I'm trying to set. I can't seem to find it anywhere. Tried || etc. Any help is much appreciated. All the best Mr M Link to comment https://forums.phpfreaks.com/topic/106314-solved-how-to-set-multiple-variables-with-one-if-statement/ Share on other sites More sharing options...
r-it Posted May 19, 2008 Share Posted May 19, 2008 if ($lang == "englidh") { $cardTitle = $englishTitle; $sendLang = "en" ; } Link to comment https://forums.phpfreaks.com/topic/106314-solved-how-to-set-multiple-variables-with-one-if-statement/#findComment-544839 Share on other sites More sharing options...
misterm Posted May 19, 2008 Author Share Posted May 19, 2008 Doh Many thanks (hangs head in shame) Mr M if ($lang == "englidh") { $cardTitle = $englishTitle; $sendLang = "en" ; } Link to comment https://forums.phpfreaks.com/topic/106314-solved-how-to-set-multiple-variables-with-one-if-statement/#findComment-544846 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.