PHP Tutorial 1 - PHP Variable (Basic PHP)

Veröffentlicht am: 29 September 2016
auf dem Kanal: PHPAns
78
1

PHP Tutorial 1 - PHP Variable Basic PHP
Variable like a pot in PHP. We can hold many data using a variable. Like a text string "Hello World" or Integer value like 500. We can use a variable in the whole script if we set variable value top in the script. We don't need to use value repeatedly if we use variable. Here are some rules to declare a variable.
Watch Again:    • PHP Tutorial 1 - PHP Variable (Basic PHP)  
Subscribe Us: https://goo.gl/C0oDap
Like Us Facebook:   / w3ans  
Follow us:   / phpansdotcom  
Coonect Google Plus: https://plus.google.com/+phpans
YouTube:    / phpans  
1. In PHP variable must start with "$" , otherwise it'll not work.
2. Variables are case sensitive . $the_variable & $The_Variable is not same.
3. You must start a variable with letter or "_" (under score). Any number isn't accepted starting in a variable.
4. PHP accepts alpha-numeric characters and underscores. a-z, A-Z, 0-9, or _ in variable.
5. PHP doesn't accept space in a variable. example- '$helloworld', '$HelloWorld', '$Hello_World' is correct variable but '$hello world' isn't a correct variable.
Here is some example and discussion about PHP variable. Let's see how we write or declare a variable in script.

Tutorials, Basic PHP, php variable, how to write variable, how to set variable in php


Auf dieser Seite können Sie das Online-Video PHP Tutorial 1 - PHP Variable (Basic PHP) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer PHPAns 29 September 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 78 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!