Mikrolån | Näppäimistö | Sammenlign Kredittkort | Strømleverandører | Sammenlign Innbruddsalarm | Forsikringsselskap | Mobilselskaper i Norge | Hva koster Elektriker
Php

How To PHP variable to add special rules to tutorial

And between a programmer and a professional programmer is some difference. These programs may be revealed in his writing style, technique, cleanliness, techniques, etc. in order to add a comment. There are various ways to add variable. There are several methods in which to perform the work, which can be used, but there can be complications, so the use of such methods should be avoided, there are some methods should be applied in special cases. So everyone should become a skilled programmer to declare variables to hold different ideas about how best time and method of coding.
PHP variables in different ways to be announced. For some advantages to declaring variables should follow some rules. Let’s analyze some examples of variables.

Examples of variables

$ Step, $ Step, $ tutoHost, $ step_1, $ tuto_host, $ helloworld, $ _tutohost, $ __ tutohost, $ simple1number example, all bheriyebalai PHP used if any would be a mistake, but $ simple1number and $ __ tutohost us to mislead . $ Simple1number case of simple After 1 (one) use was not I (Alphabet I) have been used not only l (Alphabet L) has been used, look at it is difficult to understand. $ __ Tutohost’s two underscores has been used as well difficult to understand at once. Therefore, we should abandon such a confusing system and $ step, $ tuto_host, $ tutohost, $ _tutohost similar variables should be used.

After writing the above Kodak a nptepad click the File menu, click Save as index.php in the File name in the Save as type, select All files by clicking on the Save to Save. index.php file C: \ xampp \ htdocs should be in the htdocs folder. Htdocs folder to the Desktop Shortcut to the action easily could be put in. If XAMPP Running index.php file in the browser address bar to show the will to write http: //localhost/index.php. And if a new folder in the htdocs folder create a folder named as the site of the index.php file is to write to the browser’s address bar http://localhost/site/index.php. If the browser look like the image below.

 

  • $ Step = 4; Step by publishing the name of a variable has been declared. (Variable declaration in the best way)
  • echo $ step; In the name of the variable value of the step 4 is displayed in the browser. (Variable working well)
  • echo “<br />”; A line break will be displayed in the browser reveals. (Browser appears separate line for each variable)
  • $ Trickbd.com.bd = “www.Trickbd.com.bd”; Tutorial_bd reveal the name of a variable has been declared. Underscores the variable name has been used, and all letters lower-case. (Variable declaration in the best way)
  • $ Trickbd.com.bd= “Educational Web site”; Tutorialbd reveal the name of a variable has been declared. All lower-case letters in the variable name and the name of the tutorial, and bd uccaranagatadika two parts together, but due to a very familiar word has been written and easy to understand. (Variable declaration in the best way)
  • $ Step_1 = “Learning”; Tutorial_bd reveal the name of a variable has been declared. At the end of the variable name has been used, and the number has been used to underscore and all characters in lower-case. (Variable declaration in the best way)
  • $ _tutohost = “Www.Trickbd.com.bd”; _tutohost Reveal the name of a variable has been declared. At the beginning of the variable name has been used to underscore characters and all lower-case. (Variable declaration in the best way)
  • $ Step = 3; Step by publishing the name of a variable has been declared. Upper-case first letter of the name of the variable to be so much of a problem, is not easily understood. (Variable declaration is not the case, however, the best method to be used if necessary)
  • $ Trickbd.com.bd = “Relaibale hosting provider”; Trickbd.com.bd reveal the name of a variable has been declared. Upper-case H, where the variable name is used. (Variable declaration can be in use)
  • $ __ Trickbd.com.bd = “World wide service”; __tutohost Reveal the name of a variable has been declared. At the beginning of the variable name has been used, which underscores duration arbitration. (Variable declaration in case of very bad way)
  • $ Simple1number = 100; Simple 1 number reveal the name of a variable has been declared. The variable name, which was a 1 arbitration. (Variable declaration in case of very bad way)

Writers: Tusher Imran

He is studying electrical engineering at. Trickbd.com.bd and supranational blog he writes about technology, including electronics. Currently he is working tiutohoste as well as education.

Comments

comments

About the author

Toriqul Islam Tusher

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

Leave a Comment