Functions in Php | PHP Tutorial #16

  Рет қаралды 180,496

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 222
@usamabaig8591
@usamabaig8591 10 ай бұрын
Yeh lecture to uppar se guzar gya.
@anuragsinha9693
@anuragsinha9693 3 жыл бұрын
Bhai ekdm upr upr se chala gya bhai aaj pehli baar aisa hua
@RohanDasRD
@RohanDasRD 4 жыл бұрын
Ekdum Katai Zeher Marks Diye Ho Bhai! 😂😂😂 Aur wo 98 Physical Education mein nahi wo 98 mile hai Harry Bhai Se Coding seekh kar Computer Science ki subject Mein Mili Hai!
@ashnapainuli6759
@ashnapainuli6759 3 жыл бұрын
Rohan das 🤣🤣🤣🤣
@codinghashira8069
@codinghashira8069 3 жыл бұрын
You know harry? 🤣🤣🤣
@ffgangbd4984
@ffgangbd4984 2 жыл бұрын
Finally found rohan das 😂
@rajshee8518
@rajshee8518 2 жыл бұрын
🤣🤣🤣
@myCodingJourney02
@myCodingJourney02 2 жыл бұрын
🤣
@faryadkhattak1533
@faryadkhattak1533 Жыл бұрын
function check(){ echo "Easy to learn PHP fuction. "; } check();
@babyboss1587
@babyboss1587 3 жыл бұрын
3:58 You should return 'sum' not 'value' 9:46 Value of 'i' should start with '0' as 'i' is also incrementing the same no of time the value of 'marksArr' is adding to 'sum'
@manojmodsara4958
@manojmodsara4958 3 жыл бұрын
ya
@vilakshangupta3200
@vilakshangupta3200 2 жыл бұрын
Ya
@predator315
@predator315 2 жыл бұрын
Yeah
@moinshaikh177
@moinshaikh177 2 жыл бұрын
yes all the sum is stored inside the sum variable it kept increasing as foreach loop started till it ended
@jaydeepkhalesiya5993
@jaydeepkhalesiya5993 Жыл бұрын
Yep bro Maine us tarah se Kiya to avg galat aa raha tha Thanks to you now average sahi aa raha hai
@abheygupta2332
@abheygupta2332 4 жыл бұрын
7:48 The legendary laugh😂😂
@rashmiparashar7483
@rashmiparashar7483 4 жыл бұрын
thoda mushkil tha par samaj aa gya ye series ek dam dhamake dar chal rahi he
@dreamerb1
@dreamerb1 2 жыл бұрын
Harry bhai is the best❤❤
@gourishetti217
@gourishetti217 4 жыл бұрын
Apke ye tutorial se lockdown use full hora brother tqsm for this tutorials😇😇
@apoorvashukla3344
@apoorvashukla3344 4 жыл бұрын
Superb video sir keep going u deserve 100 m subs...
@techie7973
@techie7973 4 жыл бұрын
Harry bhai For calculating avg marks use $i=0 ; instead of $i=1;
@amankumarujjain6188
@amankumarujjain6188 3 жыл бұрын
i agar 0 se start krogay ... To maal lo lrkay ko 70 aur 60 aaye h .... To uska avg hoga 70+60/2 (subject 2 h).... Tm 0 logay to subject (1+0=1) hi rh jaega ... 1 isliye liya unhonay
@deepakprerit01
@deepakprerit01 3 жыл бұрын
@@amankumarujjain6188 no, i should be initialized to 0, i++ hoke increment ho jayega
@amankumarujjain6188
@amankumarujjain6188 3 жыл бұрын
@@deepakprerit01 bhai mere pehle step agar zero le logay to avg kaise niklega .... Zra btana
@satyamkushwaha9336
@satyamkushwaha9336 3 жыл бұрын
@@amankumarujjain6188 bhai mere 501/6 = 71 kaise hoga batana zra
@amankumarujjain6188
@amankumarujjain6188 3 жыл бұрын
@@satyamkushwaha9336 kya bolna chahte ho pura likho tmhara question samajh nhi aaya
@DeepakVerma-er4cs
@DeepakVerma-er4cs 3 жыл бұрын
Many Many congratulations harry sir for 2M subscribers...glad to see this tht you efforts and your knowledge will spread day by day🙂😊😊
@inamurrehman343
@inamurrehman343 4 жыл бұрын
I love your tutorials. Love from Pakistan. Keep it up bro♥️♥️♥️♥️♥️
@vilakshangupta3200
@vilakshangupta3200 2 жыл бұрын
This PHP Course is Very Helpful!!! 😄😄😁😁
@sohelshaikh7175
@sohelshaikh7175 4 жыл бұрын
HARRY SIR AAPKE VIDEOS SE BHOT CONFIDENCE AATA HAI PROGRAMMING SIKHNE ME THANK YOU SIR 👍
@SaeedBlogger
@SaeedBlogger 3 жыл бұрын
You are great harry. Love from Pakistan
@ss-cw6he
@ss-cw6he 3 жыл бұрын
IIT graduate
@tusharsadariya7296
@tusharsadariya7296 8 ай бұрын
Thank You Brother😊😊😊😊😊😊
@DheerajJ-tl6cl
@DheerajJ-tl6cl 8 ай бұрын
Are you following any other videos or resourses for php please suggest.
@ninjamohdzaid
@ninjamohdzaid 4 жыл бұрын
Tagdi playlist hai harry Bhai Keep it Up
@sandeeppaul5526
@sandeeppaul5526 3 жыл бұрын
dhannyawaad sir
@giftmania9317
@giftmania9317 4 жыл бұрын
Harry bhai dil se thanks
@rohit_gaikwad
@rohit_gaikwad 3 жыл бұрын
*it's very helpful thank you so much* 💖
@itsparagjagtap8185
@itsparagjagtap8185 3 жыл бұрын
best playlist for php
@nancyfazal2536
@nancyfazal2536 4 жыл бұрын
Crystal clear explanations!
@rocklee7574
@rocklee7574 4 жыл бұрын
harry bhai kuch assingment bhi do karnay ko......Aap bahut badiya padatay ho
@itxxsaiff
@itxxsaiff 2 жыл бұрын
Tutorial #16 Done, I was absent for 3 to 4 days 😅 but now present
@nishanttheprogrammer9486
@nishanttheprogrammer9486 4 жыл бұрын
function avgMarks($marksArr) { return(processMarks($marksArr)/count($marksArr)); }
@subratknath4837
@subratknath4837 4 жыл бұрын
harry bhai (7:20 ) was damn hilarious...#love u brother
@samuelfrank1369
@samuelfrank1369 2 жыл бұрын
Thanks a lot Bhaiya
@HammadAlamSiddique-yg1te
@HammadAlamSiddique-yg1te 3 жыл бұрын
this course is amazing
@harshwebdeveloper
@harshwebdeveloper 2 жыл бұрын
Thank you so much Harry bhai for all the playlists you made on your channel. You made it very easy for me to learn programming and coding languages like python, java, java script, c, php, html and css. I've learned a lot from your videos and your projects. But if you don't mind, I would like mention a mistake in this video which I found when I was trying this on my own.
@simranbains6199
@simranbains6199 Жыл бұрын
Thank you so mmuch sir
@rushirajparekh9079
@rushirajparekh9079 4 жыл бұрын
Harry bhai, average calculate karne me galti kardi aapne.. $i ko 1 se nahi 0 se initialize karna tha. jitne subjects hai usse 1 subject jyada count ho raha hai aapke code me. To code thik karne ke baad, aapka average hai 83.5 Aur Rohan bhai ki average hai 63.333
@adityamukherjee7695
@adityamukherjee7695 4 жыл бұрын
Bilkul sehi
@tusharkadam7471
@tusharkadam7471 4 жыл бұрын
Well done bro!
@muhammadmakki9240
@muhammadmakki9240 4 жыл бұрын
This is course is usefull
@ARCHANAKUMARI-du5cw
@ARCHANAKUMARI-du5cw 4 жыл бұрын
Thanx for vedios this is graet help full thanx thanx sir
@galaxylimouae
@galaxylimouae 3 жыл бұрын
Harry Bhai, zindabad, from Ejaz Ahmed Pakistani.
@ANKITMISHRA-rm6wc
@ANKITMISHRA-rm6wc 4 жыл бұрын
Harry sir thank you for your python tutorial I have one request can you please make tutorial on BCI I searched a lot but apke jaisa koi aur nhi bta skta So please sir
@shreyajagdale9101
@shreyajagdale9101 9 ай бұрын
you are awsm bro
@ryuk69yearsago16
@ryuk69yearsago16 4 жыл бұрын
Keep it up harry bhai!
@ilyasdabholkar2647
@ilyasdabholkar2647 4 жыл бұрын
function purchase($item) { echo "you purchased $item "; } $item1 = "pen"; $item2 = "phone"; purchase($item1); purchase($item2);
@deeproy8136
@deeproy8136 Жыл бұрын
guys average galat kiya hai harry ne. because [99, 98, 93, 94, 17, 100] ki average 83.5 hota hai agar 6 se divide karo to solution is: 11:02
@ankitdalsaniya6463
@ankitdalsaniya6463 3 жыл бұрын
Harry bhai average marks me problem hai { $i=0 } se start karna padega varna 7 se divide hoga. average marks Galat aayenge.
@programmingwithjavascript3579
@programmingwithjavascript3579 4 жыл бұрын
Amazing👍😍🤩
@vivekyt9123
@vivekyt9123 4 жыл бұрын
Thank u Harry Bhai ....❤️
@code4everyone875
@code4everyone875 4 жыл бұрын
Good work 👌 👌 👌
@bhupatbhagat7356
@bhupatbhagat7356 3 жыл бұрын
Brow! advance php course par video banaoo please!
@Bagheli_flash0906
@Bagheli_flash0906 4 жыл бұрын
Nice video sir
@codewithharryfanchannel559
@codewithharryfanchannel559 4 жыл бұрын
Super.
@engineerbhai7642
@engineerbhai7642 4 жыл бұрын
Thank you l. I. Tian.
@rahuldogra9632
@rahuldogra9632 4 жыл бұрын
harry bhai sory to say but muje funtions samajh m nahi aya... :'(
@SachinSahu-hr1yn
@SachinSahu-hr1yn 8 ай бұрын
Same bro
@brainsnackstore
@brainsnackstore 3 жыл бұрын
very nice video thank you for the quality content :)
@wearedovelopers9977
@wearedovelopers9977 3 жыл бұрын
nice bro !!!!
@microcodes6887
@microcodes6887 3 жыл бұрын
ধন্যবাদ 🐧
@ranaahsanansar524
@ranaahsanansar524 3 жыл бұрын
Nice Tutorial
@ShivamKumar-ie1je
@ShivamKumar-ie1je 2 жыл бұрын
avgMarks me $i ki value zero assign hogi... function avgMarks($marksArr){ $sum = 0; $i = 1; foreach ($marksArr as $value) { $sum += $value; $i++; } return $sum/$i; } $i =0; hoga...
@deepanshubhardwaj6951
@deepanshubhardwaj6951 2 жыл бұрын
Thankyou sir
@Munnamunna-oq5et
@Munnamunna-oq5et 4 жыл бұрын
Thanks sir jiii.
@kashifkhitchi4516
@kashifkhitchi4516 2 жыл бұрын
in your video where you want to calculate average , there should be i = 1, otherwise it will divide sum/ total subject(6) which is 57.95....., , but you write i= 0; due to this formula is sum/(total subject(5)) and answer is 49.9..... plz mention it....
@handsomewizard3167
@handsomewizard3167 2 жыл бұрын
simple bolu to .. average nikalne ka formula hai totalsumofmarks/numberofsubject agar i ko $i=1 se initialize kare to total numberofsubject me 1 zyada aa jayega for example 6 subject hai to 7 result aayega isiliye harry bhai ne mistake kiya $i ko $i=1 nahi i=0 se initialize karo
@princethakkar7052
@princethakkar7052 4 жыл бұрын
Harry bhai avgmark me $i ki value 1 lenge to total value+1 hoga na to ans correct kese hoga ???? Isse avg wrong aayega isliye $i ki value 0 leni padegi Can I right or wrong??? Please give me reply Thank you
@vipinsingh2172
@vipinsingh2172 4 жыл бұрын
nice explation
@BatogeToKatoge-wl4ff
@BatogeToKatoge-wl4ff 4 жыл бұрын
you should have return variable sum from function
@vishalkumarrajeshbhaigohel654
@vishalkumarrajeshbhaigohel654 3 жыл бұрын
Thank you so much Harry bhai for all the playlists you made on your channel. You made it very easy for me to learn programming and coding languages like python, java, java script, c, php, html and css. I've learned a lot from your videos and your projects. But if you don't mind, I would like mention a mistake in this video which I found when I was trying this on my own. avgMarks function gives the wrong value of the average of the numbers given in an array because when the loop ends the value of $i becomes 1 unit larger than the length of the array. For this either we can set $i = 0 or use count function. Once again thank you for your efforts towards us!!
@vikashpodder3575
@vikashpodder3575 4 жыл бұрын
Harry bhai mai ek hi function se, sum or avg dono ka value nikalna cha raha hu,par error aa raha hai.
@dipakpatil4370
@dipakpatil4370 3 жыл бұрын
harry bhai ( 9:43 ) $i = 0 chaiyee tha bhai..................... : )
@kimneena3448
@kimneena3448 4 жыл бұрын
Harry bhai please make a tensorflow playlist
@ujjwalkumar19
@ujjwalkumar19 4 жыл бұрын
Hello Harry, i have seen your flask and html, css, js full playlist. How can i use it to make some money.
@shivsharma3918
@shivsharma3918 Жыл бұрын
hi , There is Wrong Answer in output of Average marks program see below : Correct Average will come out this : RohanDas Average Marks := 63.333333333333 Harry Avergae Marks = 83.5 Correct code for Average Marks is : - function avgMarks($marksArr){ $sum = 0; foreach($marksArr as $value){ $sum += $value; } return $sum/count($marksArr); }
@sopppansauhub8575
@sopppansauhub8575 4 жыл бұрын
bro aapne avg jo nikala hai usme loop 7 bar chal hai jiski wajah se aapke 380 aur 501 ka avg 54.28 and 71.57 which is wrong so $i must be equa to zero i. e. $i-=0 ; so loop only runs 6 times and average of 380 and 501 out of 600 will be 63.33 and 83.5 respectively.. thank you..
@giogijon8958
@giogijon8958 3 жыл бұрын
Yes you are right 👍
@meghanshusaxena1450
@meghanshusaxena1450 Жыл бұрын
bhaiya mere me parse error de rha hai jahan maine marks ka array ka variable create kiya hai
@abduksam
@abduksam 4 жыл бұрын
mein ne source code deikha to pata ap ki website nhi khuli laga ke domain expire ab jaldi se server ki ip dhoondo pr khul gai
@amitgautam1774
@amitgautam1774 4 жыл бұрын
Bhaiya Wo Na C Language Ke Pdf Mil Jaate Na To Exam Ki Preparation Krne M bahut jyada Help Ho Jaati Plzz c language ke pdf Provide Kara do Plzz🙏🙏🙏
@rishabhkumawat4514
@rishabhkumawat4514 2 жыл бұрын
Last video m foreach loop m condition check kese hogi aapne toh key variants hta diya Variable as key => yh condition
@realitybhukkad6727
@realitybhukkad6727 4 жыл бұрын
super
@sandeeppatidar2314
@sandeeppatidar2314 4 жыл бұрын
data structure and aglorithm ka bhi full course benao na sir
@sujandhakal2587
@sujandhakal2587 3 жыл бұрын
sorry for inconvenience. harry sir using the increment form $i=1 will give the average of 5 subject only . it should be $i=0; .
@parththakkar4202
@parththakkar4202 3 жыл бұрын
your answer right but not taking average of 5 subject but It will take 7 subject total so you right $i = 0
@priyankagaikwad4060
@priyankagaikwad4060 3 жыл бұрын
value of 'i' should starts with '0'
@gururaj2199
@gururaj2199 4 жыл бұрын
Heart please here over here!!
@himanshuchaprana4495
@himanshuchaprana4495 2 жыл бұрын
bhai last 15 video sahi se samajh ayi but ya upper se chali gayi 🙃
@qamarabbas322
@qamarabbas322 3 жыл бұрын
i will see you next time
@rocklee7574
@rocklee7574 4 жыл бұрын
harry bhai jo coding provide kariye hai mai as it is copy kar raha hu. Tab bhi output sahi nahi aa raha
@Jitendrakumar-du1ng
@Jitendrakumar-du1ng 3 жыл бұрын
Bro, The value of i should be 0 and not 1. You can check manually.
@aayamshrestha5982
@aayamshrestha5982 4 жыл бұрын
Plz make video in web development
@paristar3079
@paristar3079 4 жыл бұрын
He already has.
@kanishish
@kanishish 4 жыл бұрын
Please make a video on webpack and babel.
@rizwansyed5342
@rizwansyed5342 3 жыл бұрын
boht he tez ho agya bhai !!
@mindmotivation3180
@mindmotivation3180 3 жыл бұрын
Rohan das is best friend of harry bhai
@soloh4cker
@soloh4cker 4 жыл бұрын
Apne aap ki bahot ejjat karte ho😂😂😂
@mrinalsood9887
@mrinalsood9887 3 жыл бұрын
you enclosed the variable in square brackets [ ] and said it is an array but u haven't taught it yet. it's supposed to be written as $arr=(), ie within round brackets. square brackets as far as i know are used in lists in Python. Please clarify
@predator315
@predator315 2 жыл бұрын
It's another way to define an array in php
@predator315
@predator315 2 жыл бұрын
One way $arr= array(elements,...) Another way $arr= [elements, ...]
@neerajdabhi4245
@neerajdabhi4245 4 жыл бұрын
Sir please start series on selenium and web automation with python
@sagardhrana6988
@sagardhrana6988 4 жыл бұрын
Wow first
@mdsakhawatkhan2905
@mdsakhawatkhan2905 2 жыл бұрын
Your result is wrong bro! The avarage number of rohan das is 63.33. If you give the value of i = 0 ; then its come true result. But i understand the system how to creat a function. Thank you
@vipankhatri161
@vipankhatri161 4 жыл бұрын
Hi Harry bro I want to develop a small billing software which will maintain inventory and export it's entire data to excel would you suggest which programing language will be good for the same.
@HinduWaffenChief
@HinduWaffenChief 4 жыл бұрын
Genius
@udayan285
@udayan285 2 жыл бұрын
Thanks #HarryBhai
@surajshinde8257
@surajshinde8257 4 жыл бұрын
this help me to make vedio conferencing app
@TataIPL-dy9ln
@TataIPL-dy9ln 4 жыл бұрын
harry sir $i=0; lo aapne $i=1; le rakha hai ......
@pankajpuri6339
@pankajpuri6339 2 жыл бұрын
Harry sir ek Baar function ko ek Baar phir explain kardo plz
@SomjitDas-p6o
@SomjitDas-p6o 6 ай бұрын
bhai apne jo pehle return $value kia tha to 93 kiu aya? video time(5.55 to 5.56)
@princesukhala7106
@princesukhala7106 2 жыл бұрын
Done done again
@prateshhanvat3215
@prateshhanvat3215 4 жыл бұрын
Sir. C++ K liye VS code me graphics header file (bhi) kaise enable Krte hai btao plz. Bahot jarurat hai. Instagram pe bhi msg kiya hai maine. Plz btao sir 🙏🙏🙏🙏
@aayamshrestha5982
@aayamshrestha5982 4 жыл бұрын
From python
@nitinmangtani5072
@nitinmangtani5072 Жыл бұрын
sir value of "i" should be 0-zero;
Date Function: Handling Dates in Php | PHP Tutorial #17
13:10
CodeWithHarry
Рет қаралды 124 М.
Associative Arrays in Php | PHP Tutorial #18
11:40
CodeWithHarry
Рет қаралды 142 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
How to REALLY learn C++
8:13
The Cherno
Рет қаралды 820 М.
Deepseek - a cheater? (Exposed)
8:03
CodeWithHarry
Рет қаралды 388 М.
PHP Functions Tutorial in Hindi / Urdu
7:47
Yahoo Baba
Рет қаралды 173 М.
Multi-Dimensional Arrays in Php | PHP Tutorial #19
17:06
CodeWithHarry
Рет қаралды 123 М.
Learn Coding & Get a Job (in 2025) 🔥
16:54
CodeWithHarry
Рет қаралды 999 М.
Functions with objects and array in javascript | chai aur #javascript
11:16
Anonymous Function in PHP (Hindi)
16:20
Geeky Shows
Рет қаралды 20 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.