You are on page 1of 14
ASSignment No.2 no Stat _ the use of Str =vierd =Count aleng oath its Ph Shr-word =count_ = It is used cas at the number ot words ina tying Syntor = ty- ward ~count CSbing) & plain Tindexed and ASSacia tive Array with table example: 4 Tindexed vray I ey inde, i ic pre Senka by Gn index Numnbey by defaurk « All element of in Wumbéy _(ahich Storts fam O- PHP indexed aray can tere umbey. Shang, n i + PHp inde v i u also _Knawn ac numeric array | + Example

Output » Size 6 ! Big Size is Medium 1 Siz@ 1S. Shoyb- : © scanned with OKEN Scanner lye plement because each @lement —ty label than an ‘inci mntnlid 4 Example t=

© scanned with OKEN Scanner 9) Stet oh Bare af , itt ane to exedile | Eng te i 4 Las} a sp tte oe © scanned with OKEN Scanner (ELI ee = SSS pail _s) | Agile. on pingin Ba cele Bebe deve z > ZY php id ee i £ vtquive rr (wf fpat php !); oe a 7 + Spaf = new fppe P salt — j_—_$ paf a: —____}___ pat => Sefonk < aval 5) 10))— Spaf =>; cel C40, 10)" Helio swords!’ 1; 62 | write the ute of arta hi => + Prroy— flip OQ pet — The Array flip OS eae exchange Lely aSsociakd va nan _oyra ~The fuachon tuys On ary in frp ordey Ve. keys fom gry becomes values From aay pecomes «keys => Explain the following Shang functions with _exa ae se tee! ee © scanned with OKEN Scanner % 7 iia pi Z| Ene Uc 1 3 a4 ame) a i> 3 ceil aera et oi —4|_ wre es iv) & Scanned with OKEN Scanner v tChng lag HO ny mo n Q a FUNC DON th EB An rel ned m ~ = ho funtion ilo ed closure gy Lowbda * ; i= Sometime 0 A —want 6 funchon fay on S €- Clature ics Obonywmous bo which Close Overy Ane ey: nw ich itis defined. You heed beigpecity we Ky coord on it. = Mo Use 6 enon wen Puncha # Intne coll hack f ia Example = $qvel = funeban C Sname) £ echo “Hello "' Snava “90g fel ti a: Sortek ¢' world |) - Sqvet C'PHp')- : © scanned with OKEN Scanner uy © scanned with OKEN Scanner Describe hawks diaing 2 nto image in PH Drawing a __nfig_imagé naa yale fund 4 a (sed + 7 ia J lmagecrtale | function} ed ty Crake a4 “Width : Sort attaciotve ana, nw ase to Key as © scanned with OKEN Scanner — ty) _arsart ©)". Sovt aStociatwe anay + becending to als ety Ju a —V) kwort Os Sart i associatve any jn derending oo __.oXdty -atcarding fp the key, aia vevioueah toi, Late «rape v4 Tn order fe _rtmovwe an Clement fiom an ——Orray we con Use Uncet ¢) funchan ohich — the Ulement! fiom von Janay 4 ten ue rr. ¢ “| i b es Aumeriaty functon used. ‘me thod ie 3) Porm a neo anay ofthe ancy lick Using wm £ tad. unset ¢) 5 How will you find hurobey of elem@ntS in array ? “You Con Simply used) the, pap Gadint ©) ov ~ Size F ©) -Functon te gob the wo. of element oy values tn _aw_ansy. —-The Count _¢) * Sizeaof © fonction returnc a ~~ 4 Variable that has been initialized tite — © scanned with OKEN Scanner PE 9 tie 9 pip 9 Sdayis= Orva, ("Cun mon" ws! : —£¢ho count C&dayc): _ tho Zby Ss") 2 €¢ ho “Sivéof. Cfdayeds 4 28> 7 List dake te tad fineden xp la A j ‘\ Checkdgle ©) dale -add W) —2)dale. ceale _ frm formate 4)__dale cwate 0 S) dake date coh co. 4 6) sale seta) soe 4 D dale. ditt cy 2 _dale - format OO S$) dale woah 0) ——le_) dale — parcery take tore OO 9 ae —Rekurns an astaGahve laren ole fei Jed —info about a specifies dale. Rekuns’ comet iDAleTinie py jo). © scanned with OKEN Scanner

You might also like