0% found this document useful (0 votes)
7 views

2nd Unit PHP

jvvvvvvvvvvvvvvvvvvvvljbkjk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
7 views

2nd Unit PHP

jvvvvvvvvvvvvvvvvvvvvljbkjk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 16
ADITYA:: Pet Aenean = seeey Tanuapy Feb my of Arrays PHP. there one there “ty pea oF arxerciyy odexed araay fesoclatne oomay Multidimensional arm 1 Eodered avaay “The Keys of nT indexed fm array, sac integers “rndexed ie oat used uinen ides siemens axe by teen position Sxoy having only inseger keys lis ned 40 03 an indexed anaay: — ADITYA: ———————————— OQ pssociastive array, __An_arssociacye EIN having stsing_KeyS __arnay + kteing $+ 2 is typicatiy Caled 13. gmarks =ontay C’ Math s*=> 36 4"P hy = __*'chemistay => 30); “echo d.monks C Maths’ 5H cpuk 96 Cs, toes PHP internally: Ana ays So the only ditfexence behwee sco, ay and “indexed arrays: is whet the key 5 happens Lomxay $03 O$s0¢jatiy. be + some array catunes ane ponvided | mainly , ——_for_use with indexed onrays because they oss, ——sthet_you have on want key 3 strict ave Consens integers beginningeiat Oe es cc @ Multidimensional prcay 5: tna _mult= dimension) anaoy ach elemens- ne main array can GIS6 be an array ex.- Snowe = array Ct, 2,3), Snows = eavay CU, 546)5 ft $9012 = dreray (4,8, 9); odas Wh 4 mutit = arnay C$ FOWO, $ OWA, 30: $value = $rouri C2607; - ____ + explade i

“gacen'), = _ Saresu)t 2 cocaynHip(hart)s a _ int2 (dorset) 5 Es | a ee L _output:= Amiay (Pred =>. Cgzeen3=> b) tue # Traversing ora - aawensing ap _aneeiy means to visit cach. anditven, clement of ovvay using a ae a _irenatos functions. Prog ssacshise and ysings rie te oo eae ies DUP provides avery special Kind of looping } — BD reser = Moves the teaser to the Fissd el) emep sy a 1 the occcray and ehrens ib 3 _G@_oexto= moves the iteromma tothe nest -Cemeng -— in the arsay ond -retenms it. eg —___@-pacv) = Moves the fteroder to the PAVIOUS element — g de in the array and wetuens to 1 @iendor = roves the i-terctiox to te Jat elemeng 7 ee in the omoyt anol stturos ieee a ___@ cach (s- Returns the key an! cathe Curren) element as an and moves the + ote acter “ty the eect element. Wop s= Rehnns the key ofthe conor! clement Bec Function and bts chypex _A function is_an_independent+ named block « £ kK OF Coy ho -definedl +o peafaam @ speci Ge terse — Adan tages. of sing Function: ee bs weg functions “seducer tne memory « 1 Complex me 5 men 1d Complex of the pangram iss 2 2 (unions mnioly helps in ¢ade e-usahilly | Defining a function = Syntax £. Stakemens=Nist Y u T a cbt , x is ad | F + { Spe ~ echo “ Helo World| § ___ N\ 5 cai wri te risgt apes ia dy : 4 at * Retusing Values == Sd ~ sNolues Sx eee acted by using acctumn Statemen: = Any type may be retumnedy Clading, mer | + oa 2 a Q 5 #_ Operation s_on_saing and storing funcHans + fe Stang of text Gan be stexcd “in_o_wariable—in. u much the same way aso numeric value bye she a jgnmens must susacund the Staing soli guncde. # etic 5 filigge | ) a at t _“There_one thace ditterend imaye to waicte Staing, | Q single quoted string Ca. .") __ TE Boosbie euated string ¢%. 2.7) ee L @bhere Cocumenas Chere <). r ‘ Ts Wwe to write rourtiline string into 8 92gqnam syntax i= ee soit var name > <<< id entih'en 2 String Ssbevbem enc Latham ae __stering sstatemenst= iden Pi sees shaded © TNA ___llens~ <7 pnp distr s <<< EOD Hep we are , Sf ee is Gees Sei , a Stites ns —_—4___ Fans — ~ — at ee eee i The Stee word. count (2 is a built io funttian ‘chai ee ta_founsh the number of Wovds jp ge screy 0) Dhiacihidlih ctakdaaniaaning opel ictes Ht copy ot i = nieric atexey t NTN qacphics concepts , a Gexcppbic: nie comm paste guerpnies 80. im, ef various colors. & Basic * PLP. support ia a rectangle of ¢ identifies x ay_pf colom: fach-enty_in th ¢ ee seperate alex voles ang “Bie Och vajye \— + Colors paletic an ane pale tee tnas_tha Red .0ne fox Gxeen_and-one for nanges_faora—O— oe #Cxcading image + een 2 SThe image functions thot PHE Use Are based o/ __-ine_@D image library tina ia developed by: ‘Ton eB Boustel! Cuno boustell-Core)_- PHP 2€0_image Funai) & fetus work swith four moin_vaatex image for, JPEG. PNG and ere -for deaktop We bole WMP fe images fox mobile penwsens: | *TThe image crease ¢) function | sel a inoage r is used -to cre —Nswo_image: T+ is prefered +o use oo imagecrey > ———#uurcoley () to Creaste an im, a Pp" Magecolor cd - — — De ae sy oa ae yeta= Imagecrcate C4 width, Sheigbt) ce enagecalmatiocas® (Simage, Sink facd int 4 Sint SPRUE ane 1 for an image, image desioay C4icnage) Ts_tac to Free imag-< Lids Any Memory associated with, 4 example:

You might also like