Double equal sign operator

web programming tutorials

محمد طيب

Double equal sign operator

Double equal sign operatorHere is examples of comprision operators, == (has same value as)



<?php



$book 
5;

$gbook 5;

$equal "variable one and two are same in value";

if(
$book == $gbook) {



print (
"$equal");

}



else {

print 
"variable one and two are not same in value";

}

?>


Frist i make two variables named $book and $gbook and assign value 5 to both variables,after that driect text.then i write if() and a pair of curly brackets inside code to execute as:
if($book == $gbook) {

print ("$equal");
}

When we execute the code and php will find that condition is true then $equal will get execute if nor then else will come.
try to change value and see what happens.

0% stars Rating : 0% Dari 0 User

Posted Posted: 16 Jan 2015 Author Author: tayyab
Views Views: 5442 Comments Comments: 619 comments
Categories Categories: learn php
Tags Tags: php,html
Share Share:

Incoming search terms :


Blog Title Comment
 

Write | View comments ( 619 )

  • Samual's avatar#82693 Samual
    I'm not sure https://cajasaluminio.com/stmap_450jytr.html flomax price australia As a reaction to the crack epidemic of the 1980s, many federal drug laws carry strict mandatory sentences. This has stirred unease in Congress and sparked a bipartisan effort to revise and relax some of the more draconian laws.

    06 Apr 2020 - 13:59
    172.68.10.11
    Reply
  • Prince's avatar#82694 Prince
    Not available at the moment https://ruedupascher.fr/stmap_455kydt.html street price wellbutrin Crawford, 28, went 16-7 with one shutout, a league-best 1.84 goals-against average and a .932 save percentage in 23 playoff games to help the Blackhawks win the Stanley Cup for the second time in three years.

    06 Apr 2020 - 13:59
    172.68.245.180
    Reply
  • Andrew's avatar#82692 Andrew
    I'm training to be an engineer https://ruedupascher.fr/stmap_17ihfkk.html amitriptyline hydrochloride 25 mg for pain In its latest global economic snapshot, the IMF cut its world growth forecasts for the sixth straight time in less than two years, saying a stronger performance in most advanced economies would fail to make up for a more sluggish expansion in the developing world.

    06 Apr 2020 - 13:59
    172.68.246.157
    Reply
  • Phillip's avatar#82691 Phillip
    Will I have to work shifts? https://affairegroup.com/stmap_179y28i.html nizagara espao-a --OL Kevin Boothe, who last week started at center, took some reps at left guard, his natural spot, when David Baas, who was listed as limited on the team's practice report, was given some practice reps.

    06 Apr 2020 - 13:59
    172.68.245.180
    Reply
  • Collin's avatar#82683 Collin
    I'm sorry, she's https://purpuraclothes.com/stmap_45aa0wg.html misoprostol uk for abortion This is partly because Sainsbury's is smaller than its rival in non-food and has more room to grow, but also because it has more focus on clothing and homeware than consumer electricals, where Tesco has found itself horribly overexposed.

    06 Apr 2020 - 13:12
    172.68.10.43
    Reply

Write comment

Name :

Email :

Website :

Comment :


Bbcode ON | Smiley ON

Category

Game cheats ( 5 )
Learn gis ( 5 )
Islamic zone ( 1 )
Adult jokes ( 3 )
Urdu adabi shagufay ( 3 )
Roman urdu jokes ( 1 )
Learn html ( 5 )
Civil engineering ( 2 )
Hacking tutorial ( 3 )
Symbian ( 5 )
Urdu fun ( 17 )
Learn php ( 32 )
General ( 10 )

Archive

Statistic

Online : 29
Hits : 45/3426426
Hosts : 26/147390

Most commented

Most viewed