Variables in PHP
- storage for values or expressions
- starts with $ ( ex: $sample1)
- variable name must begin with a letter or underscore ( $student or $_student )
- no spaces ( error: $stu dent, should be: $student )
- case sensitive ( $student is not the same with $Student )
- assignment operator is = ( $student=1 ; assigns value number 1 to the variable )
- use quotes " " to assign text value ( $student="Bram" )
- the value may change during program execution
Thursday, November 8, 2012
Subscribe to:
Post Comments (Atom)
Popular Posts
-
I spent many hours searching for ways on how to connect Notepad++ to XAMPP. Like the way it is connected to a Web Server on the internet. Bu...
-
Comments - To avoid confusions, getting lost in long lines of scripts or codes, comments are very useful. - They make programs easier to u...
-
Another free gif animation of Dr. Jose Rizal, national hero of the Philippines. To download, right click on the image then click Sa...
-
"Books permit us to voyage through time, to tap the wisdom of our ancestors. The library connects us with the insight and knowledge, ...
-
This is the 100th post. I am going to publish my thoughts on the question: Is the glass half empty or half full? It ...
-
While Loop Execute the statement repeatedly while the expression or condition is TRUE. syntax: while (expression) statement P...
-
New American Standard Version: " Whoever loves discipline loves knowledge, But he who hates reproof is stupid." ...
-
String Concatenation - process of joining two strings together. String - Sequence of characters. Concatenate - to link together, unite ...
No comments:
Post a Comment