0% found this document useful (0 votes)
24 views20 pages

PHP Notes

Php notes

Uploaded by

bbhagyalaxmi300
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)
24 views20 pages

PHP Notes

Php notes

Uploaded by

bbhagyalaxmi300
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
e a ie sgt He ° ; a stands for Hypertext PreProcorsor- spar he. ig Q Sever tile cercépin language | ame PHP code ke executed ‘dah Oeb cesver- PHP te a wWidlel used free and -offictent 7 oonodve 40% othox Cetver ide peqrema| Ke AP and TSP: + PHP ie a powerful tool for moka dynamic and interactive content & #he “idol Gagdi -” 7 PHP war croaked by Ramu Lex dort & 9dy puk PHP apperses | othe, mouwet 9) 4995- PHP is oH intexpseked, tongerae 7 PHP rent foster than other Genvert ci PHP can bee termbedde nto AML: J PHP ie an Sbjeck ovtented fan e- : ~y pny is any Oper Source. cally language: J pup fle ts coved iy the extenston — php - Basic, PHP Suntory > A PHP sutiph Ca? be HTML Cpcument+ t ches toith PHP cuppoets @ et pe Ahad Can be aasity ef indo the followin r 1) Seater type 1 ene Meee) B) Compound type ( wser- -detined!) it) Geeta tape Date “Type * ee at iriten ©? Compo ad , vP : : f axvou objeck Hesowsce NOLL inten (poolean hiya! Aloak(doutte) | ting tokeg ere Numeric values without | eccenad pain ove teeabed Ou entegesc - ‘Tntegoes " im PHP can be et oH: Base to , bases, bosele - Ex- as (decimal) , oas (octal) » 09a5 (ne). dowble Numeric volues with deemed i ane treated aus Aautle Dootean " Boolean type epresents two wie, Teter os Fabre « © scanned with OKEN Scanner ai | vn efor to ae of “characters portend.» mas (©?) w my, vHello’ 9, & 123 abe” an quota io PHP PHP is a Weakl te ped Long ua PT uahe sjectanlass sy ts aa se here: wre can be aucgned do q variable aevect lg aul : ‘variodhe Hence 1 enouk: peri on PHP CY oe ted before a: nome * 4 } variable cname > vale 5 ayrton ques fore Naming Variable in PHP - eee yaa i psciable = Name GO PHP gharty with ge ia) Mt gotewed vy fre Mame Of Pre vortable - aaphabets (A= 2. 9 Voriatele name con conbaln, Late eswehai'd ai), digits Co- 9) and one specia eee nerpe cannot etauct idan epee be: a4 mut gtort ae te vor | care conettime YVartiole: names & o pre natte) <9 PHP : a $a = OAS 5 y= esos $e > bee i gts “1st”; y tt ww \ : echo “T! ogo © scanned with OKEN Scanner PHP porate oo HLOLTOY § tov “ DThere auce Numercoued “ opecsto i Pop, OMEN MDE Or ee chanified tate fallontg cater @ \) Adtnmnath © OO nant 9) Srewement [Decrernons a : %) Compauci st 7 3) Are uy tog a) peo * enithmetl c gt pyrament /Devre mong +k +h. ING Mens ~ + Subsbrect ; ye 4 abe " : x Come k / pide te Moduluy Net equal i Sn Tdenticorl Calue # type’) 4 Not dential Evalue ¥ rg): gocebap (1,0) 4 oe, A!) 8 ) haa © scanned with OKEN Scanner Meaning ard 4 AND ort OR logical. More OR } NOT &b AND i enya | Betws e Open acter : Operator es island : 6 ) Bwise” AN i ‘ Hitwise oe 1 Phe a5 90 © scanned with OKEN Scanner ot concat ie oa a Preay © ox Operentor ni? + Union : Equal] : Nie equality) ao Talent) les Nlot aqentity Neo & lovealt 5 1 is Yeode Sb « © Scanned with OKEN Scanner Nhe switch cause Seer be) epee atest ov co Number, character ee wea: >The cares cay be portent) O04 Break statement % not meee for the, task te See > PHP Stpporcts the ony Plenokive oF hoop tonkrol statements 4 ‘ 1) for t We) while Loop TY) do-w --while a lee for eade Loop op o ied tect 9 then the ly tonclition eg oe 2 es 980K fone (ita ain 5 ifieketemerds <2 pHe fore $e=15 gtx 5. * echo * ti \n”, © scanned with OKEN Scanner “ep *S alro a pre tested boo like Fn" Ri a dhe tniliaticatian , dation ord. s ce “tt is done in oliffevent statemen' nko > Pikiclinakeen a4 wohtle Ctordition) [Ugkatemend 5° Updation 5 oe ‘ PP ACRPHP iis ia $t= 105 ae while ¢ $17, Bet Seger tas i eat le lw ql --. while Loop és a post testeo| 728 after Whe 2xecuatsy Syphax ce © Scanned with OKEN Scanner IE By iG $3h, do acho “ ft Non Coe: Fonte C fix 115 > each Loop a 4rreath [oop Ciatement % Loop thous art a 9q this loop ithe cervenk eat Spal ed to a variable } enn! von by one place Symtant . for each (annoy name cpecialy’ wwed for %. Bernents bt alll, Teresa ae ites Awavencred usagi “enti Level hoops” ond vail Andice. > For -oeaversing? AD: array) 4 bevel are, used. For “Evavening) “BD axvay? » 3 level ‘oops one. Used, t 40 9). Zs Z2 PHP Student = a c . GU kp ao), Ua)? a1), £1524, BY ‘teers 05 54n I Croakes an, aren af y axe Tee hE ee Ane Sumo} devo? Soret the ava oloments en v cok 1 ascending worker : on Tne derending ordyor ’ # gort ©) 6 © scanned with OKEN Scanner puir ob ey In PHP, a dring tO eequence Tn atreing » A56 chartacteres aurpporcted Capa ASCT) ‘he ntdboe chawactors cane not cupporcted + > ep ie, 5 can be breoael clanified tmto the ‘ellouzing a Coe v ingle queted 4 Double “Gueteq Are q of characters . via Beth Anese tne t ‘shying axe same except Aouble quoted stom “tebe Speciak actions es ; i special chovocters Like ve 1 . a7 SeeiG Sequences Uke , SUapocked ty alouble quert 2 Siw : 3 a ng Can be eveated wen <7 PHP $o1 = ‘weltome hy fsa “ weleume’ ; © scanned with OKEN Scanner em at Sbetny ant PHP uted can Ye displayed in oN uppercase Sebrors , | BeeSupperc CY» fou erer ckrcko Lowers ( )- OH dia = \wals" » eueo cdetoupper (F%) 7 peng, Shen 1 pl The reece tan bo hae a nead skeen i eek ans Hypa Ane yan ying 77d 4 is Ge cakes 3 Parameters * ol sting g yon Reg . wy oO 4 ste = “ wales. Werk pow °" 45 we gam thc pecgaces (Toes 0 ~ : suaching © Sh va geowrored OE] ae nora eters 697 exer tae i | gst OYE EES hh the yin PHP, n: Hepes xe He ane. ao te! O ¥ Syne SOO Poenk keting! 5 SS iecpot ¢ heey “Tt y wad, “world "), ox & pyelo Worle 7 © scanned with OKEN Scanner Piece pup with olatabares eng) 40) ton *alaka . Goroee’ he olatabouy PrP fol aye ch Come FRE cab in 9 al pec que offer Mae follnumg extenriong tat enables ? jerete a to eslablithUrennection wrin popular qatetoose management curten - pmneyh PHP att tape oF qatobare ev ercatinw, ume creation 5 triedtim , ofetebin Fopuens cn be. porgormed DME datahare_ gens fy Atbere connentivthy “Sp PHP f- aa Coe cp the deteuoas . cRedential Cs deeuseneme = “ Local hort 5 genome > “eho 3 Fpamoned = ye $ dbname Se 4 ne sear Shep -Q Create the connectiory object + I My Cali a 2PDO CPAP data object). ee: : f pth drernes 2 ¢ Conn >, ew raga ( Seve ? ea e Te panwoed | fbbnen; Sepa, Check conneck? an: te ( feo 3 tmneck ern ) j . die (8 comnectin Failed - ” & cory [Link]) dat: Perform re re quirced ae ee The kegquice, atalotre epereabins "Like CRRA |e ‘ate ates “pein eed rie oe eX Ane, Stet: me thoot: © scanned with OKEN Scanner Step 6: Clove tee connec by - Feonn selene co) Ex 4 ‘ . f . ace reas Ctadext Col »name /eyvail) ASotup DB ceedentih 4 corverename = “pocathost 5 Pusername = “abe” 5 $ passwoced = Sy? "3 $ cbname = “pat 5” Ieweate connection: goon = new sqli ($ servexnarne fyasword / gdbnarne 3 Veheck. tonne ction 4 guserename » © scanned with OKEN Scanner we 3 . pen “ Exitore oneatin table Nes. Pus > OY” 5 j oi (lose thes Conneckiay . : grom) > clove U5 : f a oY cteong tp PHP Ee pt pun woo peee of code, Aad con ; ait tease axcgumenk a and a ae cad tocke | Hint os & 7 vole: rekon, VoL as Geonal functions tan be aivitfied ante Renee 1 Aad [ Built-in: Ae oy sneer F User qe ve Functions - RHE Usere ehenod FIA Ad ; ne Uae * «gate ti Pulses > There cute A paudts uy hus detitbzonyof oar ee, chs dtr 8 ove "4 are mentes)” vd ty 2 The Pep jars Coun ‘Yo datien| Beet it Functor nouines value 4, Beer's por >In PHP Aud can be called by Sabian, doollyas nee erence © scanned with OKEN Scanner

You might also like