PHPWebWebWebWebWebWebWebWeb://”WindowIIS+PHPphp-5.2.6-win32-installer.msiIISISAPIPHPappServapache2.2confhttpd.confPHP*…*/echophpecho;php_echo.phpprint()print,10intprint(stringargs)php_print.phpprintprint%2-1P24P25sprintf?php$name=Tom;$money=1000;$sale=500.2345;echosprintf(%s::%0.2f,$name,$money-$sale);?PHPWindowNTPHP5.0WindowsPHPPHP=”ThisisshanghaiEduasksoftware”;//$Myintval=12334;//$Myboolval=True;//$MyArrval[0]=”My”;//$MyArrval[1]=”First”;$MyArrval[2]=”Array”;$Myfloatval=2346.45;//?1.3$\2.PHP4.0php_string.php3.intfloatintfloat4.PHP4doubleArrayObjectphpPHPstudents[2]?php$array=array(a,b,c);//0echo$array[0];//a??php$Student=array(name1=Jame,name2=Jack,name3=Mary);echo$Student[name3];//Mary??php$Student=array(0=array(name=James,sex=Male),1=array(name=Hony,sex=Female));echo$Student[0][sex];?php_array.php$array[0]$Student[“name3”]$Student[0][1]$Student[“0”][“sex”]array(),?php$Student[]=James;//$Student[0]=James$Student[]=John;//$Student[1]=John;echo$Student[1];?$Student1[10]=Tom;//1011?php$Student1[10]=Tom;//$Student1[]=Mary;//11echo$Student1[11];?array()?php$Student2=array(Jame,Mick,Mile);$Student2=array(Jame,5=Mick,Mile);//Mile6echo$Student2[6];?PHP?php//$arry=array(0=1,1=2,eduask=);echo$arry[0];echo;echo$arry[eduask];?php_array2.phpcount()array_slice()array_shift()array_push()array_merge()array_intersect()--array_unique()--array_reverse()php_array_fun.phpforeachforeach?php//$Student=array(Jame,Mick,Mile);foreach($Studentas$new){echo$new.;}?//$new?php//$Student=array(stud1=Jame,stud2=Mick,stud3=Mile);foreach($Studentas$stud=$name){print$stud.=.$name.;}?foreach($Studentas$name){//$name}php_foreach.phpeach()?php$Student=array(name1=Jame,name2=Jack,name3=Mary);list($key_name,$val)=each($Student);echo($key_name);echo($val);?//each()listphp_each.phpkey()mixedkey(arrayarr)php_key.phpreset()mixedreset(arrayinput)php_reset.phpend()mixedend(arrayinput_array)next()prev()current()mixedcurrent(arrayinput)php_current.phparray_php()array_unshift()array_pad()sort()?php//$Student4=array(23,67,2,14,90,72);sort($Student4);foreach($Student4as$new4){echo$new4.;}??php$Student=array(JP=JohnSmith,AS=XamesPatt);sort($Student);foreach($Studentas$key=$new){echo$key.=.$new.;}?sort()asort();ASCIIrsort()sortarsort()asortksort()krsort()usort()php_sort.php?php$Array_shuffle=range(1,100);//,1100shuffle($Array_shuffle);//1100$Array_shuffleforeach($Array_shuffleas$new){echo$new.\t;}?php_range.phpprint_r()boolprint_r(arrayarr)php_print_r.phpin_array()truefalseboolin_array(stringstr,arrayarr)strarrboolphp_in_array.phparray_keys()arrayarray_keys(arrayinput)inputphp_array_keys.phparray_key_exists()trueorfalseboolarray_key_exists(stringkey,arrayarr)php_array_key_exists.phparray_values()arrayarray_values(arrayarr)php_array_values.phpPHPresourcenullnullunset()unset()php_null.phpphpC,booleanstringintegerfloatarrayobjectboolfalse00nullphp_changeType_bool.phpfalse0true10?php$str1=shanghai;echo(integer)$str1;//0echo;$str2=234abc;echo(integer)$str2;//234??php$changeV=1;//$newCV=(integer)$changeV;echo$newCV.;$changeV=a;$newCV=(integer)$changeV;echo$newCV.;//0$changeBool=true;//false0$newCV=(integer)$changeBool;echo$newCV;//1?php_changeType_int.php?php$val=Hello;$Greet=(array)$val;echo$Greet[0];?php_changeType_array.phpPHPPHPsettype()getttype()settype()booltruefalse?php$Mystrval=Container72;$Myboolval=false;echosettype($Myboolval,string).;//1echosettype($Mystrval,integer).;//1echosettype($Myboolval,integer);//1?P80~81gettype()?php$Myval=10pigs+2;echo$Myval.;//12echogettype($Myval).;//integersettype($Myval,double);echogettype($Myval).;//double$Myval=50Percent.2;echogettype($Myval);//string?php_getType.phpphpis_boolis_stringis_floatis_doubleis_integeris_nullis_arrayis_object?php$val1=123;echois_integer($val1).;$val2=xyz;echois_integer($val2);?php_isInteger.phpisset()truefalse$boolval=isset(variable)?php$var=”translate”;if(isset($var)){echo“ok”;}else{echo“no”;}?PHPdefine()?phpdefine(CONSTANT,Thiscannotbechanged);echoCONS