Mikrolån | Kaiutin | Billig Kredittkort | Strømpriser 2017 | Billigste Tyverialarm 2017 | Billigste Forsikring | Mobilselskaper 2017 | Advokater
Php

How To PHP Constant Tutorial

At the time of writing PHP programs are used in a variety of variables if necessary. The values of variables may be different in different parts of the same program. Conversely, as variable or constant is used kanasatyanta PHP program, which is the same in all parts of the program. Kanasatyanta constant declaration or to define the keywords are used on PHP. For example define ( “PI”, 3.141592); .

Practice Project

<html>
<head>
<title> www.trickbd.com.bd</title>
<style>
body{background: #00cc99 ; color: #000000;}
h2{color: #663300;}
h1{color: #CC00CC;}
</style>

</head>
<body>
<?php
define(“PI”, 3.141592);
print “PI = “.PI;
echo “<br />”;
$a = PI + 40;
print “Variable A = 40+PI = “.$a;
?>

</body>

</html>

  • At the top of the program define ( “PI”, 3.141592); Through a kanasatyanta has been announced.
  • print “PI =” .PI; Kanasatyantati have been directed to display the browser. PI = 3.141592 will be displayed in the browser.
  • echo “<br />”; Through a line break has been made.
    $ A = PI + 40; The $ a is a variable, which is the result of adding 40 to the value of PI kanasatyanta contains.
  • print “Variable A = 40 + PI =”. $ a; $ A variable has been ordered to display the browser. Variable A = 40 + PI = 43.141592 browser will be displayed.
  • document.write ( “Variable B =” + b + “<br />”); The variable has to show in the browser. Variable B = 80 will be displayed in the browser.

Comments

comments

About the author

Toriqul Islam Tusher

বলার মত কিছু নাই!

Leave a Comment