Viewing Category » PHP Training

testing if a variable is assigned in PHP with isset() function

Post Thumbnail of testing if a variable is assigned in PHP with isset() function
 php-lesson1(variables)       

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 default values in PHP

Post Thumbnail of Variables default values in PHP
 php-lesson1(variables)       

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

PHP’s deal with unassigned variables

Post Thumbnail of PHP's deal with unassigned variables
 php-lesson1(variables)       

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

Reassigning Variables in PHP

Post Thumbnail of Reassigning Variables in PHP
 php-lesson1(variables)       

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

Assigning Variables in PHP

Post Thumbnail of Assigning Variables in PHP
 php-lesson1(variables)       

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

PHP Variables Basic

Post Thumbnail of PHP Variables Basic
 php-lesson1(variables)       

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

try your Your first simple php example

Post Thumbnail of try your Your first simple php example
 php-lesson0       

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
 Page 2 of 2 « 1  2 
CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone