skip to main
|
skip to sidebar
Php Consultant
bidvertiser
internet advertising
Monday, September 8, 2008
SAMPLE CODES
CODE #1
echo "Hi, I'm a PHP script!";
?>
CODE #2.
echo ("Welcome to our first PHP script"); ?>
$myname="MASROOR HUSSAIN"?>
My name is $myname");?>
CODE #3.
$arr = array();
$arr[0]=34;
$arr[1]=12;
$arr[2]=90;
$arr[3]=12;
$arr[4]=6;
$arr[5]=49;
$arr[6]=1;
$arr[7]=23;
$arr[8]=56;
$arr[9]=21;
for ($i=0;$i<10;$i++)
echo "Value at $i is $arr[$i]";
?>
CODE #4.
$arr = array();
$arr[0]=34;
$arr[1]=12;
$arr[2]=90;
$arr[3]=12;
$arr[4]=6;
$arr[5]=49;
$arr[6]=1;
$arr[7]=23;
$arr[8]=56;
$arr[9]=21;
echo (" Unsorted");
for ($i=0;$i<10;$i++)
echo ("Value at $i is $arr[$i]");
sort($arr);
echo (" Sorted");
foreach ($arr as $n)
echo ("Value is -->$n");
?>
CODE #5.
$arr = array();
$arr[0]=34;
$arr[1]=12;
$arr[2]=90;
$arr[3]=12;
$arr[4]=6;
$arr[5]=49;
$arr[6]=1;
$arr[7]=23;
$arr[8]=56;
$arr[9]=21;
echo (" Unsorted");
for ($i=0;$i<10;$i++)
echo ("Value at $i is $arr[$i]");
sort($arr);
echo (" Sorted");
for ($i=0;$i<10;$i++)
echo ("Value at $i is $arr[$i]");
?>
1 comment:
Ozair Khan
said...
good site wonderful work i learn a lot james
September 8, 2008 at 7:24 AM
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Forex
Blog Archive
►
2009
(2)
►
February
(1)
►
January
(1)
▼
2008
(35)
►
October
(14)
▼
September
(21)
Example 4 file reading
PHP file reading
Example open for read
PHP file open for read
Example code 4 create & open
PHP file create and open
Other functions
Session Name & ID
Session Start
PHP Session Functions Reference
What is a PHP Session?
PHP Form handling – POST Method
PHP Form handling – GET Method
The ‘include’ and ‘require’ functions Example
The ‘include’ and ‘require’ functions
DATE & TIME Formats
SAMPLE CODES
PHP Contents (Continued)
PHP Contents (Continued)
PHP Contents (Continued)
PHP Contents
Feedjit Live Blog Stats
page-rank10.com - PageRank10 Experiment
page-rank10.com
- PageRank10 Experiment
Partner links
Super Cars
Wresrtling
frontpage hit counter
1 comment:
good site wonderful work i learn a lot james
Post a Comment