| Ajax Tutorials, PHP Tutorial, Javascripts, Visual Basic.Net Training, XHTML tutorial, php script library, PHP Codes, Web Design tutorials, web development tutorials | ||||||
![]() |
||||||
| Home | Forums | Downloads | Books | Submit Content | Links | ||||||
Variables in PHPDate:2006-02-13The purpose of variable to store information or any value. A variable is symbolic name that represents some data that you set. For example, age is a variable and different persons have different age. PHP is case sensitive, that means that myvars and myvars1 are two different names to PHP because they have different capitalization. PHP accepts unique variable names. Variables have much type of values (like numeric, string and logical values), in PHP every variable should be declare with $ symbol . Variable Name Guidelines
How to use variables? In
php, variable starts with $ symbol. for example:
In this example we have defined two variable name, age, name has string value “mark” but age has numeric value 35, The output will display as below:
Another Example of PHP
Output
|
|
|||||
| Desclaimer | Privacy Policy | Submit Content | Links | Link to Us | Sitemap |Contact Us | ||||||
| Copyright Programming Tutorials, Web Development
Tutorials, Source codes © All Rights are Reserved. Powered By Evernew Solutions Credit Card Consolidation - Hotel Las Vegas - Share Dealing - Unsecured Loans |
||||||