PHP If Statement

PHP If Statement In Hindi

PHP
Loading...

PHP If Statement 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, Jinka Link Niche Diya Gaya Hain |

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

If Statement In PHP In Hindi

Waise To Har Programming Language Main Control Statement Ka Istemal hota Hain Usi Tarah PHP Main Bhi Control Statement Ka Istemal Hota |

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

Jab Hamare Duvara Diya Gaya Test Expression Agar True Hota Hai To If Statement Execute Hota Hain |

Read Also : Full Course C programming in Hindi

Syntax:

if( condtion )
{
	//statements;
}

Example:

<?php

$value = 14;

if ($value < 20)
{
# code...
echo "This Value Is Bigger";
}

?>

Output:

This Value Is Bigger

Is Program Main Aap Dekh Sakte Hain Ki Hamne $value = 14 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 True Hogi |

Leave a Reply

Your email address will not be published.