PHP If Else Statement

PHP If Else In Hindi

PHP
Loading...

PHP If Else In Hindi:- if else statement in PHP yani control statements ko diya gya expression true hota hai tab if wala statement execute hota hai or agar expression false hota hai tab else wala statement execute nhi hota hai.

  1. if Statement
  2. else_if Statement
  3. switch Case Statement
  4. break Statement
  5. continue Statement

If Else In PHP in Hindi

Program Main Condition Ke Hisab Se Statements Ko Control Karne Ke Liye Control Statements ka istemal Kiya Jata Hain | Lekin PHP Main Koi Types Ki Control Statement Hoti Hain |

Block Diagram :

python if else hindi

If Else Statement Ko Ham Jab Istemal Karte Hain Jaha Par Hame Koi Condition Ko Check Karna Hota Hain |

Read Also : Full Course C programming in Hindi

Jab Hamare Duvara Diya Gaya Test Expression Agar True Hota Hai To If Statement Execute Hota Hain Or Agar Test Expression False Hota Hain Tab Else Wala Statement Execute Nhi Hota Hain |

Syntax:

if( condtion )
{
	//if_statements;
}
else
{
	//else_statements;
}

Example:

<?php

$value = 19;

if ($value > 20)
{
  # code...
  echo "This Value Is Bigger";
}
else 
{
  echo "This Value Is Small";
}
?>;

Aap Upper DIye Gaye Program Ko Dekh Sakte Hain Or Jab If Condition True Hoti Hain If Wala Part Execute Hota Hain Or Jab If Condition False Hoti Hain To Else Wala Part Eecute Hota Hain |

Output:

This Value Is Small

Is Program Main Aap Dekh Sakte Hain Ki Hamne $value = 19 Assign Ki Hain Hamne Ek Condition Ko Lagaya Hain Ki if($value > 20) Hain, Aap Is Condition Main Dekh Sakte Hain Ki 20 Value Greater Hain Isliye Condition False Hogi |

Dosto mujhe ummed hai ki aap If Else In PHP In Hindi ko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |

Leave a Reply

Your email address will not be published.