PHP has a function isset that tests whether a variable is assigned or has default value
this function gets one argument in the paranteses that is the variable to test, and return a boolean ehich is true or false.
Example:
<?php
$assigned_var = 0; //this will assigne 0 to $assigned_var
print("assigned_var value: $assigned_var<br>");
print("unassigned_var value: …
4 March 2010
3 comments
Variables in PHP do not have intrinsic types – a variable does not know wether it will be used as a string of characters or a number.
so you may ask yourself how does it know what kind of default value it will store when it hasn’t been yet asigned?
the answer …
28 February 2010
No comments
there are many programming languages that willl object if you try to use them variabels before the are assigned such as ActionScript.others will let you do it.if you used unassigned variables you may find yourself reading the randome contentsof some area of your ram.in PHP the default error reporting allows …
28 February 2010
2 comments
Just like any other programing languages PHP also has the capability to reassign a value to its variables and thats the main idea of creating variable and thats what will be understood of the meaning of a variable, somthing that is not consistent and could be changed
there is no distinction …
26 February 2010
No comments
With all of the programming languages I have worked so far, the simplest programming language syntax specially in variable fields is PHP
in PHP Language assigning a value to a variable is so simple
Just write the variable name eith the rules I prevously mentioned and then add a single equal sign …
23 February 2010
No comments
Like any other programming languages such as C, C++, ActionScript3.0 the main way to store data in the middle of the body of the PHP program is by using variable.
there are some rules to create variabels inside of a PHP code
All variabels in PHP are denoted with a leading dollar …
23 February 2010
No comments
in ths exampel I want to show you the most basic and simple example of a php program.as I will discuss later the php will not have aany thing eith the layout of,events,on the fly document object model(DOM) manipulation, or really everything about the look and feel of a webpage.in …
19 February 2010
No comments