Conditional Statements in PHP – PHP Virgin

Php

Video is ready, Click Here to View ×


http://codebabes.com/courses/php-virgin/php-conditionals

Before we get started with conditions, let’s take a quick look at comparison operators. You should remember them from math class. These allow you to make a comparison between two values. For instance, 1 is less than 2, $a equals $b, or $a is not equal to ‘dude bro’.

http://codebabes.com/courses/php-virgin/php-conditionals

Programming is all about conditions. Hell, life is all about conditions. We think in conditions, right? Like…

16 thoughts on “Conditional Statements in PHP – PHP Virgin

  1. ===(triple equal) means that the type of variable must be the same.For e.g if declare
    a variable $var1 = 1; $var2= 1 if we check the condition in if statement if ($var1 == $var2)
    it evaluates to "TRUE" and if suppose on next line we have declare $var2= '1'; and again in if statement we check if ($var1 === $var2) it Return FALSE bcoz $var1 is of integer type $var2 is of string type … hope your doubt s clearified…. happy coding…..

  2.  
    This is a disgrace. Women in the video gaming scene are already so poorly represented. Putting women in sexy clothing and strutting them around talking about coding is not inclusion, it's objectification which at best perpetuates the stereotype that women aren't worth listening to unless they are pretty/half clothed and, at worst alienates girls like me and others from wanting anything to do with the industry. As a web designer this is close to my heart. How am I supposed to be taken seriously when assholes like you come along and make a complete bollocking joke of something many of us take years of uni and hundreds of thousands of dollars to educate ourselves in. You should be ashamed. 

Leave a Reply

Your email address will not be published. Required fields are marked *