if elseif else Statements in PHP in Hindi | PHP Turorial in HIndi in 2020 #21

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 122

  • @ThapaTechnical
    @ThapaTechnical  4 роки тому +8

    Guys.. comment section pr batawo human life ka by comparing Age aap kaise Program likhoge..

    • @Sandeep-op3fr
      @Sandeep-op3fr 4 роки тому +2

      $age = 20;
      if ($age

    • @PMARQS
      @PMARQS 4 роки тому

      mery payry bhai ya code thora galt ha ku k ap keh rehy hoo k agr age 18 say less ha to teeager ha butt agr age is greater then
      18 then ya adult ha to is trha else wli condtion to check e nai hoo gi ap ko adult k liay bhe age set kerna pary gi otherwise its wrong ya phr ap aisa kerain k adult k liay age

    • @mohammadasad2763
      @mohammadasad2763 4 роки тому

    • @subhakantaroul
      @subhakantaroul 4 роки тому

      $age ;
      if ($age

    • @mdbilalzafar6321
      @mdbilalzafar6321 4 роки тому

  • @ishworsharma4084
    @ishworsharma4084 4 роки тому +18

    if ($age < 13) {
    echo "You are kids";
    }
    elseif ($age < 20) {
    echo "You are Teenager";
    }
    elseif ($age < 40) {
    echo "You are Young";
    }
    elseif ($age < 60) {
    echo "You are Adult";
    }
    else{
    echo "You are old";
    }

    • @satishshah3861
      @satishshah3861 4 роки тому +1

      If a user write his age 20 then which statement will execute as 20 is less than 40 also less than 60.

    • @ishworsharma4084
      @ishworsharma4084 4 роки тому

      @@satishshah3861 If user write his age is 20 less than 40 will executed
      Because 20 is less than 40 not less than 20

    • @joebidenindiawale6326
      @joebidenindiawale6326 3 роки тому

      here is a problem in this code
      If use enter a nagitive value

    • @kalpanakashyap8899
      @kalpanakashyap8899 3 роки тому +2

      @@joebidenindiawale6326 AGE is never negative

    • @jpjeelff1660
      @jpjeelff1660 2 роки тому

      Variable

  • @kavitanihal9584
    @kavitanihal9584 3 роки тому +1

    if ($age < 5) {
    echo "You are kids";
    }
    elseif ($age < 20) {
    echo "You are Teenager";
    }
    elseif ($age < 40) {
    echo "You are Young";
    }
    elseif ($age < 60) {
    echo "You are Adult";
    }
    else{
    echo 'god knows';
    } this was your homework this homework was very easy I love your videos........................

  • @webplanet07
    @webplanet07 4 роки тому

    Your videos are too amazing and understandable sir......Just wow.

  • @shivajisurwase5514
    @shivajisurwase5514 4 роки тому +1

    oooo sir awesome video

  • @DEEPANSHU_NAG
    @DEEPANSHU_NAG 4 роки тому +1

    Great work bhai ✌🏻👏🏻

  • @narayanjena4259
    @narayanjena4259 4 роки тому +1

    please make video on complete oops concept also

  • @savagegamer9041
    @savagegamer9041 4 роки тому

    can you take this example for solving my problem positive negative or zero can u show this in if elseif

  • @aamirsaleem2162
    @aamirsaleem2162 4 роки тому +1

    osm

  • @Sandeep-op3fr
    @Sandeep-op3fr 4 роки тому +2

    Sir what is difference between if_elseif_else and Nested_if
    Please sir make a video for Nested_if
    Please also Make for
    ' ?: ' Condition
    Thanks Sir

  • @Desilonde101
    @Desilonde101 3 роки тому

    Osm

  • @chetnasadafule9654
    @chetnasadafule9654 4 роки тому

    Sir plz make vdo on oops concepts

  • @saiqajutt5550
    @saiqajutt5550 4 роки тому

    oxm ....

  • @PMARQS
    @PMARQS 4 роки тому

    nice brooo

  • @johnthapa1879
    @johnthapa1879 4 роки тому

    Sure I will write sir

  • @AlphaSlyer87
    @AlphaSlyer87 4 роки тому +3

    Here is I solved task let me know if I did correctly or is there any fault (made mistake
    ) Thanks for PHP Course :)

    • @Rider-Khandeshi
      @Rider-Khandeshi 2 роки тому

      bhai suppose age is 30 soo what do you think is he baby, child ? ya both sahi he

  • @ravirajsinghsisodiya6120
    @ravirajsinghsisodiya6120 Рік тому

    TASK

  • @neyteias6515
    @neyteias6515 2 роки тому

    $age = 24;
    if ($age < 10) {
    echo "you are kid";
    }elseif ($age < 17) {
    echo "you are child";
    }elseif ($age < 25) {
    echo "you are younger";
    }
    else{
    echo "you are old age";
    }

  • @abdulwasay7407
    @abdulwasay7407 2 роки тому

    Syntax : -

  • @shawnjoseph3542
    @shawnjoseph3542 3 роки тому

    $age = 19;
    if($age

  • @RAFI-rq7wj
    @RAFI-rq7wj 3 роки тому

    $age=31;
    if ($age

  • @DarshanDanidhariya-qg1hs
    @DarshanDanidhariya-qg1hs 2 роки тому

    This is Task
    // $age = 20;
    // if ($age

  • @Himanshu-sg3tr
    @Himanshu-sg3tr 2 роки тому

    $age = 10;
    if($age

  • @mohdibrahim1995
    @mohdibrahim1995 4 роки тому

    for checking age

  • @argaming9548
    @argaming9548 4 роки тому

    $age = 5;
    if ($age

  • @gxdljonathan1640
    @gxdljonathan1640 2 роки тому

    if($age

  • @doesofknowledge9413
    @doesofknowledge9413 4 роки тому

  • @karanssakureofficial
    @karanssakureofficial Рік тому

    $age = 425;
    if($age

  • @kalpanakashyap8899
    @kalpanakashyap8899 3 роки тому

    $age = 13;
    if ($age60 ) {
    echo "You are an Elderly Person.";
    }

  • @FantasyInfo
    @FantasyInfo 4 роки тому

    sir, i worte that code, and it says syntax error, please let me know, where i am dumb, $Age = 10;

  • @mohdibrahim1995
    @mohdibrahim1995 4 роки тому

    #as per the Vinod task this is the way to do it

  • @excodiya478
    @excodiya478 2 роки тому

    first attempt mein hi mein na sahi likh lia hai
    $_ages = 31;
    if ($_ages

  • @VikasKumar-g3m
    @VikasKumar-g3m Рік тому

  • @zianadeem4421
    @zianadeem4421 3 роки тому

    //Sir u r great love from Pakistan
    $age = 89;
    if ($age >= 1 && $age = 6 && $age = 14 && $age = 21 && $age = 50 && $age = 86 && $age

  • @swaroopthetechz1352
    @swaroopthetechz1352 4 роки тому +1

    Dai aja hami LA qbasic padam computer.

  • @MuhammadShoaibdeveloper
    @MuhammadShoaibdeveloper 2 роки тому

    $age=10;
    if ($age < 13) {
    echo "You are kids";
    }
    elseif ($age < 20) {
    echo "You are Teenager";
    }
    elseif ($age < 40) {
    echo "You are Young";
    }
    elseif ($age < 60) {
    echo "You are Adult";
    }
    else{
    echo "You are old";
    }

  • @8115654825
    @8115654825 Рік тому

    $age = 31;
    if ($age

  • @dr.monikasharma9352
    @dr.monikasharma9352 4 роки тому +1

    if ($age < 13) {
    echo "You are kids";
    }
    elseif ($age < 20) {
    echo "You are Teenager";
    }
    elseif ($age < 40) {
    echo "You are Young";
    }
    elseif ($age < 60) {
    echo "You are Adult";
    }
    else{
    echo "You are old";
    }

  • @PubgXSports
    @PubgXSports 3 роки тому

    if ($age < 13) {
    echo "You are kids";
    }
    elseif ($age < 20) {
    echo "You are Teenager";
    }
    elseif ($age < 40) {
    echo "You are Young";
    }
    elseif ($age < 60) {
    echo "You are Adult";
    }
    else{
    echo "You are old";
    }

  • @dlrunning296
    @dlrunning296 2 роки тому

    if ($age < 13) {
    echo "You are kids";
    }
    elseif ($age < 20) {
    echo "You are Teenager";
    }
    elseif ($age < 40) {
    echo "You are Young";
    }
    elseif ($age < 60) {
    echo "You are Adult";
    }
    else{
    echo "You are old";
    }