Functions in Php | PHP Tutorial #16

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024
  • ►Source Code + Text Tutorials - codewithharry.c...
    ►This video is a part of this PHP tutorials in Hindi playlist - • PHP Tutorials in Hindi
    ►For Doubt Solving, Brain Storming Sessions & guaranteed replies, join the channel membership here: / @codewithharry
    ►Click here to subscribe - / @codewithharry
    ►Checkout my English channel here: / programmingwithharry
    Best Hindi Videos For Learning Programming:
    ►Learn Python In One Video - • Python Tutorial In Hin...
    ►Python Complete Course In Hindi - • Python Tutorials For A...
    ►C Language Complete Course In Hindi -
    • C Language Tutorials I...
    ►JavaScript Complete Course In Hindi -
    • JavaScript Tutorials I...
    ►Learn JavaScript in One Video - • JavaScript Tutorial
    ►Learn PHP In One Video - • Learn Php In One Video...
    ►Django Complete Course In Hindi -
    • Python Django Tutorial...
    ►Machine Learning Using Python - • Machine Learning Tutor...
    ►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
    ►Advanced Python Tutorials - • Intermediate/Advanced ...
    ►Object Oriented Programming In Python - • Object Oriented Progra...
    ►Python Data Science and Big Data Tutorials - • Python Data Science an...
    Follow Me On Social Media
    ►Website (created using Flask) - www.codewithhar...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

ความคิดเห็น • 223

  • @anuragsinha9693
    @anuragsinha9693 3 ปีที่แล้ว +6

    Bhai ekdm upr upr se chala gya bhai aaj pehli baar aisa hua

  • @babyboss1587
    @babyboss1587 3 ปีที่แล้ว +53

    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 ปีที่แล้ว +1

      ya

    • @vilakshangupta3200
      @vilakshangupta3200 2 ปีที่แล้ว +1

      Ya

    • @predator315
      @predator315 ปีที่แล้ว

      Yeah

    • @moinshaikh177
      @moinshaikh177 ปีที่แล้ว

      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

  • @RohanDasRD
    @RohanDasRD 4 ปีที่แล้ว +94

    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!

  • @faryadkhattak1533
    @faryadkhattak1533 8 หลายเดือนก่อน +4

    function check(){
    echo "Easy to learn PHP fuction. ";
    }
    check();

  • @abheygupta2332
    @abheygupta2332 4 ปีที่แล้ว +20

    7:48
    The legendary laugh😂😂

  • @inamurrehman343
    @inamurrehman343 4 ปีที่แล้ว +12

    I love your tutorials. Love from Pakistan. Keep it up bro♥️♥️♥️♥️♥️

  • @techie7973
    @techie7973 4 ปีที่แล้ว +8

    Harry bhai For calculating avg marks use $i=0 ; instead of $i=1;

    • @amankumarujjain6188
      @amankumarujjain6188 3 ปีที่แล้ว +1

      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

  • @usamabaig8591
    @usamabaig8591 5 หลายเดือนก่อน +2

    Yeh lecture to uppar se guzar gya.

  • @harshwebdeveloper
    @harshwebdeveloper 2 ปีที่แล้ว +4

    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.

  • @dreamerb1
    @dreamerb1 ปีที่แล้ว +1

    Harry bhai is the best❤❤

  • @rushirajparekh9079
    @rushirajparekh9079 4 ปีที่แล้ว +5

    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

  • @rahuldogra9632
    @rahuldogra9632 4 ปีที่แล้ว +13

    harry bhai sory to say but muje funtions samajh m nahi aya... :'(

  • @SaeedBlogger
    @SaeedBlogger 3 ปีที่แล้ว +3

    You are great harry. Love from Pakistan

    • @ss-cw6he
      @ss-cw6he 2 ปีที่แล้ว

      IIT graduate

  • @nishanttheprogrammer9486
    @nishanttheprogrammer9486 4 ปีที่แล้ว +3

    function avgMarks($marksArr)
    {
    return(processMarks($marksArr)/count($marksArr));
    }

  • @subratknath4837
    @subratknath4837 4 ปีที่แล้ว +6

    harry bhai (7:20 ) was damn hilarious...#love u brother

  • @gourishetti217
    @gourishetti217 4 ปีที่แล้ว +1

    Apke ye tutorial se lockdown use full hora brother tqsm for this tutorials😇😇

  • @apoorvashukla3344
    @apoorvashukla3344 4 ปีที่แล้ว +3

    Superb video sir keep going u deserve 100 m subs...

  • @muhammadmakki9240
    @muhammadmakki9240 3 ปีที่แล้ว +1

    This is course is usefull

  • @rohit_gaikwad
    @rohit_gaikwad 3 ปีที่แล้ว +3

    *it's very helpful thank you so much* 💖

  • @vilakshangupta3200
    @vilakshangupta3200 2 ปีที่แล้ว +2

    This PHP Course is Very Helpful!!! 😄😄😁😁

  • @rashmiparashar7483
    @rashmiparashar7483 3 ปีที่แล้ว +1

    thoda mushkil tha par samaj aa gya ye series ek dam dhamake dar chal rahi he

  • @ANKITMISHRA-rm6wc
    @ANKITMISHRA-rm6wc 4 ปีที่แล้ว +3

    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

  • @DeepakVerma-er4cs
    @DeepakVerma-er4cs 2 ปีที่แล้ว +3

    Many Many congratulations harry sir for 2M subscribers...glad to see this tht you efforts and your knowledge will spread day by day🙂😊😊

  • @yashkumarmishra8410
    @yashkumarmishra8410 4 ปีที่แล้ว +4

    codewithharry sir please make a data structure and algorithm lectures for placements it's very helpful for last year students.

  • @ankitdalsaniya6463
    @ankitdalsaniya6463 3 ปีที่แล้ว +2

    Harry bhai average marks me problem hai { $i=0 } se start karna padega varna 7 se divide hoga.
    average marks Galat aayenge.

  • @tusharsadariya7296
    @tusharsadariya7296 3 หลายเดือนก่อน +1

    Thank You Brother😊😊😊😊😊😊

    • @DheerajJ-tl6cl
      @DheerajJ-tl6cl 3 หลายเดือนก่อน

      Are you following any other videos or resourses for php please suggest.

  • @sohelshaikh7175
    @sohelshaikh7175 4 ปีที่แล้ว +3

    HARRY SIR AAPKE VIDEOS SE BHOT CONFIDENCE AATA HAI PROGRAMMING SIKHNE ME
    THANK YOU SIR 👍

  • @nancyfazal2536
    @nancyfazal2536 3 ปีที่แล้ว +2

    Crystal clear explanations!

  • @ilyasdabholkar2647
    @ilyasdabholkar2647 3 ปีที่แล้ว

    function purchase($item)
    {
    echo "you purchased $item ";
    }
    $item1 = "pen";
    $item2 = "phone";
    purchase($item1);
    purchase($item2);

  • @sandeeppaul5526
    @sandeeppaul5526 3 ปีที่แล้ว +1

    dhannyawaad sir

  • @sopppansauhub8575
    @sopppansauhub8575 4 ปีที่แล้ว +1

    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 👍

  • @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

  • @SR-wl4ff
    @SR-wl4ff 3 ปีที่แล้ว +1

    you should have return variable sum from function

  • @simranbains6199
    @simranbains6199 ปีที่แล้ว

    Thank you so mmuch sir

  • @ShivamKumar-ie1je
    @ShivamKumar-ie1je ปีที่แล้ว

    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...

  • @samuelfrank1369
    @samuelfrank1369 2 ปีที่แล้ว

    Thanks a lot Bhaiya

  • @shivsharma3918
    @shivsharma3918 7 หลายเดือนก่อน

    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);
    }

  • @itsparagjagtap8185
    @itsparagjagtap8185 3 ปีที่แล้ว

    best playlist for php

  • @deepanshubhardwaj6951
    @deepanshubhardwaj6951 2 ปีที่แล้ว

    Thankyou sir

  • @giftmania9317
    @giftmania9317 4 ปีที่แล้ว

    Harry bhai dil se thanks

  • @ninjamohdzaid
    @ninjamohdzaid 3 ปีที่แล้ว

    Tagdi playlist hai harry Bhai Keep it Up

  • @itxxsaiff
    @itxxsaiff ปีที่แล้ว

    Tutorial #16 Done, I was absent for 3 to 4 days 😅 but now present

  • @shreyajagdale9101
    @shreyajagdale9101 4 หลายเดือนก่อน

    you are awsm bro

  • @princethakkar7052
    @princethakkar7052 4 ปีที่แล้ว +1

    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

  • @ARCHANAKUMARI-du5cw
    @ARCHANAKUMARI-du5cw 4 ปีที่แล้ว

    Thanx for vedios this is graet help full thanx thanx sir

  • @HammadAlamSiddique-yg1te
    @HammadAlamSiddique-yg1te 3 ปีที่แล้ว

    this course is amazing

  • @vikashpodder3575
    @vikashpodder3575 4 ปีที่แล้ว +2

    Harry bhai mai ek hi function se, sum or avg dono ka value nikalna cha raha hu,par error aa raha hai.

  • @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 2 ปีที่แล้ว

      your answer right but not taking average of 5 subject but It will take 7 subject total so you right $i = 0

  • @rocklee7574
    @rocklee7574 3 ปีที่แล้ว

    harry bhai kuch assingment bhi do karnay ko......Aap bahut badiya padatay ho

  • @programmingwithjavascript3579
    @programmingwithjavascript3579 3 ปีที่แล้ว +1

    Amazing👍😍🤩

  • @ryuk69yearsago16
    @ryuk69yearsago16 4 ปีที่แล้ว

    Keep it up harry bhai!

  • @vipinsingh2172
    @vipinsingh2172 3 ปีที่แล้ว

    nice explation

  • @anubishnoi2774
    @anubishnoi2774 3 ปีที่แล้ว

    Thanks Sir 😊

  • @vivekyt9123
    @vivekyt9123 3 ปีที่แล้ว

    Thank u Harry Bhai ....❤️

  • @bhupatbhagat7356
    @bhupatbhagat7356 3 ปีที่แล้ว

    Brow! advance php course par video banaoo please!

  • @rishabhkumawat4514
    @rishabhkumawat4514 2 ปีที่แล้ว

    Last video m foreach loop m condition check kese hogi aapne toh key variants hta diya
    Variable as key => yh condition

  • @ujjwalkumar19
    @ujjwalkumar19 4 ปีที่แล้ว +1

    Hello Harry, i have seen your flask and html, css, js full playlist. How can i use it to make some money.

  • @Stevekevlar_
    @Stevekevlar_ 3 ปีที่แล้ว

    very nice video thank you for the quality content :)

  • @qamarabbas322
    @qamarabbas322 2 ปีที่แล้ว

    i will see you next time

  • @priyankagaikwad4060
    @priyankagaikwad4060 2 ปีที่แล้ว

    value of 'i' should starts with '0'

  • @meghanshusaxena1450
    @meghanshusaxena1450 11 หลายเดือนก่อน +1

    bhaiya mere me parse error de rha hai jahan maine marks ka array ka variable create kiya hai

  • @BurkhanTajamal
    @BurkhanTajamal 20 วันที่ผ่านมา

    Harry Bhai please reply this if I am Creating a temperature Converter and in my HTML I have added "input name=temperature and uses two select tags with name first value===> from_unit (first name of temperature like its Celsius) second value==> to_unit and can I start direct funtion instead of adding Array because I have already added my values in HTML

  • @microcodes6887
    @microcodes6887 2 ปีที่แล้ว

    ধন্যবাদ 🐧

  • @kashifkhitchi4516
    @kashifkhitchi4516 ปีที่แล้ว

    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 ปีที่แล้ว

      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

  • @engineerbhai7642
    @engineerbhai7642 4 ปีที่แล้ว

    Thank you l. I. Tian.

  • @mindmotivation3180
    @mindmotivation3180 3 ปีที่แล้ว +1

    Rohan das is best friend of harry bhai

  • @kimneena3448
    @kimneena3448 4 ปีที่แล้ว

    Harry bhai please make a tensorflow playlist

  • @ranaahsanansar524
    @ranaahsanansar524 3 ปีที่แล้ว

    Nice Tutorial

  • @surajshinde8257
    @surajshinde8257 4 ปีที่แล้ว

    how to create webrtc application using android studio

  • @codewithharryfanchannel559
    @codewithharryfanchannel559 4 ปีที่แล้ว

    Super.

  • @realitybhukkad6727
    @realitybhukkad6727 4 ปีที่แล้ว

    super

  • @wearedovelopers9977
    @wearedovelopers9977 3 ปีที่แล้ว

    nice bro !!!!

  • @code4everyone875
    @code4everyone875 4 ปีที่แล้ว

    Good work 👌 👌 👌

  • @dipakpatil4370
    @dipakpatil4370 3 ปีที่แล้ว

    harry bhai ( 9:43 ) $i = 0 chaiyee tha bhai..................... : )

  • @udayan285
    @udayan285 2 ปีที่แล้ว

    Thanks #HarryBhai

  • @nitinmangtani5072
    @nitinmangtani5072 9 หลายเดือนก่อน

    sir value of "i" should be 0-zero;

  • @Bagheli_flash0906
    @Bagheli_flash0906 4 ปีที่แล้ว

    Nice video sir

  • @mdsakhawatkhan2905
    @mdsakhawatkhan2905 ปีที่แล้ว

    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

  • @Jitendrakumar-du1ng
    @Jitendrakumar-du1ng 3 ปีที่แล้ว

    Bro, The value of i should be 0 and not 1. You can check manually.

  • @aayamshrestha5982
    @aayamshrestha5982 4 ปีที่แล้ว +1

    Plz make video in web development

  • @princesukhala7106
    @princesukhala7106 2 ปีที่แล้ว

    Done done again

  • @kanishish
    @kanishish 4 ปีที่แล้ว

    Please make a video on webpack and babel.

  • @mrinalsood9887
    @mrinalsood9887 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      It's another way to define an array in php

    • @predator315
      @predator315 ปีที่แล้ว +1

      One way
      $arr= array(elements,...)
      Another way
      $arr= [elements, ...]

  • @abduksam
    @abduksam 3 ปีที่แล้ว +1

    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

  • @neerajdabhi4245
    @neerajdabhi4245 4 ปีที่แล้ว

    Sir please start series on selenium and web automation with python

  • @amitgautam1774
    @amitgautam1774 4 ปีที่แล้ว +1

    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🙏🙏🙏

  • @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!!

  • @aayamshrestha5982
    @aayamshrestha5982 4 ปีที่แล้ว +1

    From python

  • @gururaj2199
    @gururaj2199 4 ปีที่แล้ว +2

    Heart please here over here!!

  • @surajshinde8257
    @surajshinde8257 4 ปีที่แล้ว

    this help me to make vedio conferencing app

  • @galaxylimouae
    @galaxylimouae 3 ปีที่แล้ว

    Harry Bhai, zindabad, from Ejaz Ahmed Pakistani.

  • @sandeeppatidar2314
    @sandeeppatidar2314 4 ปีที่แล้ว

    data structure and aglorithm ka bhi full course benao na sir

  • @atharvajoshi4680
    @atharvajoshi4680 4 ปีที่แล้ว +3

    Sir aap ke koi best friend ka naam rohan he kya? kyuki aap bohot vo naam lete ho :D

    • @Bilal_Patel
      @Bilal_Patel 3 ปีที่แล้ว

      Ha shayad.. rohan & shubham

  • @pankajpuri6339
    @pankajpuri6339 2 ปีที่แล้ว

    Harry sir ek Baar function ko ek Baar phir explain kardo plz

  • @SomjitDas-p6o
    @SomjitDas-p6o หลายเดือนก่อน

    bhai apne jo pehle return $value kia tha to 93 kiu aya? video time(5.55 to 5.56)

  • @akshatjain4013
    @akshatjain4013 3 ปีที่แล้ว

    Ig you should take $i=0 only at 9:47

  • @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.

  • @rocklee7574
    @rocklee7574 3 ปีที่แล้ว

    harry bhai jo coding provide kariye hai mai as it is copy kar raha hu. Tab bhi output sahi nahi aa raha

  • @MohiniLakhera
    @MohiniLakhera ปีที่แล้ว

    Please explain code inside function...

  • @akashaggarwal6325
    @akashaggarwal6325 4 ปีที่แล้ว +1

    Yrr upload kardo