pencilbroke Posted July 22, 2010 Share Posted July 22, 2010 This is at the bottom of a script. Idk what it does, can anyone help decipher this? $forever=0!=1?0:1; if ($forever){}else if(!$forever){} else{while($forever){echo "all your base are belong to us\n";}} Link to comment https://forums.phpfreaks.com/topic/208488-3-lines-idk-what-this-does/ Share on other sites More sharing options...
pencilbroke Posted July 23, 2010 Author Share Posted July 23, 2010 no one knows? aaaah! Link to comment https://forums.phpfreaks.com/topic/208488-3-lines-idk-what-this-does/#findComment-1090450 Share on other sites More sharing options...
trq Posted July 24, 2010 Share Posted July 24, 2010 First line: Assign 0 (false) to $forever because (0 != 1) equates to true. Second line: if $forever equals true (it doesn't, it equals false) do nothing, else if $forever equals false (which it does), still do nothing. In other words, this line does nothing. Third line: While $forever equals true (which it doesn't) echo "all your base are belong to us\n" In other words, these three lines of code do pretty much nothing. Link to comment https://forums.phpfreaks.com/topic/208488-3-lines-idk-what-this-does/#findComment-1090505 Share on other sites More sharing options...
awjudd Posted July 24, 2010 Share Posted July 24, 2010 That is awesome ... but yeah ... it does pretty much nothing ... but ... All your base belong to us! ~juddster Link to comment https://forums.phpfreaks.com/topic/208488-3-lines-idk-what-this-does/#findComment-1090515 Share on other sites More sharing options...
trq Posted July 24, 2010 Share Posted July 24, 2010 Not even. Link to comment https://forums.phpfreaks.com/topic/208488-3-lines-idk-what-this-does/#findComment-1090537 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.