skip to main
|
skip to sidebar
Php Consultant
bidvertiser
internet advertising
Monday, September 8, 2008
SAMPLE CODES
<br />CODE #1<br /><br /> <?php<br /> echo "Hi, I'm a PHP script!";<br /> ?><br /> <br /><br />CODE #2.<br /><br /><? echo ("Welcome to our first PHP script"); ?><br /><?$myname="MASROOR HUSSAIN"?><br /><?echo (">My name is $myname");?><br /><br /><br />CODE #3.<br /><br /><?php<br />$arr = array();<br />$arr[0]=34;<br />$arr[1]=12;<br />$arr[2]=90;<br />$arr[3]=12;<br />$arr[4]=6;<br />$arr[5]=49;<br />$arr[6]=1;<br />$arr[7]=23;<br />$arr[8]=56;<br />$arr[9]=21;<br />for ($i=0;$i<10;$i++)<br />echo "Value at $i is $arr[$i]";<br />?><br /><br /><br />CODE #4.<br /><br /><?php<br />$arr = array();<br />$arr[0]=34;<br />$arr[1]=12;<br />$arr[2]=90;<br />$arr[3]=12;<br />$arr[4]=6;<br />$arr[5]=49;<br />$arr[6]=1;<br />$arr[7]=23;<br />$arr[8]=56;<br />$arr[9]=21;<br />echo (" Unsorted");<br />for ($i=0;$i<10;$i++)<br />echo ("Value at $i is $arr[$i]");<br />sort($arr);<br />echo (" Sorted");<br />foreach ($arr as $n)<br />echo ("Value is -->$n");<br />?><br /><br /><br />CODE #5.<br /><br /><?php<br />$arr = array();<br />$arr[0]=34;<br />$arr[1]=12;<br />$arr[2]=90;<br />$arr[3]=12;<br />$arr[4]=6;<br />$arr[5]=49;<br />$arr[6]=1;<br />$arr[7]=23;<br />$arr[8]=56;<br />$arr[9]=21;<br />echo (" Unsorted");<br />for ($i=0;$i<10;$i++)<br />echo ("Value at $i is $arr[$i]");<br />sort($arr);<br />echo (" Sorted");<br />for ($i=0;$i<10;$i++)<br />echo ("Value at $i is $arr[$i]");<br />?><br /><br />
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