Introduction About PHP
Introduction About PHP
http://phptraininginjaipur.info/
http://phptraininginjaipur.info/
PHP
Introduction
What is PHP ??
PHP is Hyper Text Processor
HT#$ generates the %e& page %ith the static text an"
images.
http://phptraininginjaipur.info/
How PHP Works??
http://phptraininginjaipur.info/
phttp://phptraininginjaipur.info/
PHP Language Features
http://phptraininginjaipur.info/
PHP %ata &ypes
Three &asic "ata types
nteger
'ou&le
(tring
http://phptraininginjaipur.info/
PHP "onstants
http://phptraininginjaipur.info/
PHP 'ariables
http://phptraininginjaipur.info/
PHP (perators
http://phptraininginjaipur.info/
PHP )tate!ents
- statement
if +8con"ition9, :
//php co"e goes here
;
else :
//php co"e goes here
;
)lternati!e (yntax
if+8con"ition9, :
//html co"e goes here
else :
//html co"e goes here
en"if2
http://phptraininginjaipur.info/
PHP )tate!ents *cont$+
-or loop
for+0i1420i 8 342066i, :
echo+.the !alue is :/. 0i,2
;
)lternati!e (yntax
for+0i1420i 8 342066i, :
// html co"e goes here
en"for2
<hile loop
'o=<hile loop
http://phptraininginjaipur.info/
,rrays
. contains !alue set
)n" has a key &y %hich the element can &e referre" to
http://phptraininginjaipur.info/
Initiali-ing ,rrays
http://phptraininginjaipur.info/
,ccessing the ,rray .le!ents
Array_walk(<arrayname>,<function_name>)
For e.g
$ncststaff = array (amrish!" murali!" narayan!#$
array_wal% ($ncststaff" &rintstaff#$
'' function to &rint each element of the array
function &rintstaff($names# (
echo )*+$names)'*+)*,+-n!$
;
http://phptraininginjaipur.info/
&o see !ore/
http///phptraininginaipur$i
nfo/
Thank You !!
Horizon Software
Solutions
http://phptraininginjaipur.in
fo/