PHP Foreach Loop with List Tutorial in Hindi / Urdu

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • In this tutorial you will learn php foreach loop with list function tutorial in Hindi, Urdu.You can learn how to print multidimensional array with php foreach loop and list function in hindi.
    PHP Tutorial in Hindi Playlist
    • ✅ PHP Tutorial in Hind...
    Official Website
    www.yahoobaba.net/
    Follow us on Facebook
    / yahooobaba
    Follow us on Twitter
    / yahooobaba
    #php #webdevelopment #webdesign

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

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

    Sir, I've been following you from CSS tutorial....You're the best teacher I've ever found....

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

      Glad to hear that ..... Thanks :)

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

      Me too sir

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

      @@rajasamantaray8613 Sweet voice and Refreshing of Yahoo baba,

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

      A trick: watch series on Flixzone. Me and my gf have been using them for watching all kinds of movies during the lockdown.

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

      @Tucker Axton Yup, I have been using Flixzone for since november myself =)

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

    Wow.. video was uploaded on Jul-19 2019 And I'm watching on Jul-19 2020..Its birthday of this tutorial clip...Hahaha.
    But I must say sir.. You are a best teacher.

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

      Thanks and You're welcome 😊

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

    Sir Your courses are very easy to understand, I request you to also make a detail course of Mobile AppDevelopment. I'll be very thankful to you. :)

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

    Good morning...well Explained.....very old video tutorials...but still watchable.....God Bless you.

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

    @Yahoo Baba
    No one can beat you Sir!
    the way you explain each and every code of line....
    Thank you sir

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

      Thanks and welcome :)

  • @MuhammadAdnan-gx6rd
    @MuhammadAdnan-gx6rd 5 ปีที่แล้ว +3

    Better way to teach php or any other language with a Project guide so that it's easy to understand everything

    • @YahooBaba
      @YahooBaba  5 ปีที่แล้ว

      Yes in the end of this course i will make a project on PHP to understand how to combine all PHP code which u r learning right now.

    • @YahooBaba
      @YahooBaba  5 ปีที่แล้ว

      Yes Sure Prashant :)

    • @MuhammadAdnan-gx6rd
      @MuhammadAdnan-gx6rd 5 ปีที่แล้ว

      @@YahooBaba that's great

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

    better than code with harry

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

    Sir maine apki html css js jQuery bootstrap sb video dekhi h ap bhut acha pdhate h love u sir ji

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

    Sir ap nay yaha Multi D Assosiative array ka likhnay ka treeka change kr dia ha jo ap nay Os video ma btaia ha wo ni ha is lia tori confusion ho ri plz sir define

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

    Bahut achch samjhate ho ap
    Great sir👌👌👌👌

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

    thanks baba ji 2 ajj mera 3rd day hai aur aaj is video pe hu ab math shuru karuga uske baad get & post ,die ,exit phir MYsql
    magar maza aa rha hai ......

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

      Dear practice bhi kar rahe ho ke nahi kyu ki maximum 15 days ke baad sab kuch bhul jao ke bina practice ke aur sab kuch phir se padna padega.

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

    parameter list mai ham tabi use kr skty jab hamen values ki length pta ho inner array mai kitni values hain but agar dynamic data aa rha ho tu length maloom ni hoti then ham list mai parameter dynamically kesy use kr skty?

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

    Sir angular Js , react Js , node is , angular mae difference Kya hae mujha lease bataadaa our kinda frame sub sae acha hae

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

      AngularJS aur ReactJS Fontend Frameworks hai .... NodeJs Frontend aur Backend dono ka kaam kar sakta hai.

    • @bestofshafi9351
      @bestofshafi9351 5 ปีที่แล้ว

      acha sir app bootstrap k baad react js our react native mae tutorial banadeegeaga

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

    Thank You Sir😇😇😇😇😇

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

      Most welcome

  • @Mdsumon-th4zu
    @Mdsumon-th4zu 3 ปีที่แล้ว

    Thanks

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

    Thank you sir

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

    @yahoobaba sir agar isme key value print karna ho toh list me toh kaise karneka ? hoping for tou reply

  • @reaction1340
    @reaction1340 5 ปีที่แล้ว

    Beautiful. 👍👍👍

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

    can we use list() function in multidimensional associative arrays?

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

      Yes we can. I have used list() funtion for multidimensional array in this video : th-cam.com/video/2BXxvBt-bNQ/w-d-xo.html
      You can also read this post: stackoverflow.com/questions/6260565/list-values-in-multi-dimensional-array-in-php

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

      @@YahooBaba Finallly, I have clear picture of it. Heaps of thanks

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

    Nice Explained ...

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

    Thanks sir.....

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

    hi,
    respected sir, here is a question please:
    if the arrays, inside the container array, are assigned different keys & if the values of arrays which are inside the container array are also assigned different keys , I mean keys assigned to each and every values of arrays are different in different arrays inside the container arrays, then how to use "foreach ($array as list()){}.?
    in the tutorial "id" , "name", "designation" and "salary" are same in every array if these are different in every array.? then how to use foreach loop as list function.?

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

      If we use different keys in array then their will be an error and we don't call it array. Array must have same key.

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

    sir which array is best for our project ..Multidimensional or multidimensional associative array?

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

      It is not like that which is best.... It is totally depends upon the requirement. You have to see what type of data is return by Database only then you have to decide which array method is used for that.

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

      @@YahooBaba okay ..thank you sir ...Love from Nepal

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

    You are my best teacher
    My life is indebted to you
    Only in one case can it be paid.
    That is prayer.
    Many prayers for you.
    from Pakistan

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

      Your most Welcome Hyder and Thanks for your good wishes :)

  • @technologyall7923
    @technologyall7923 5 ปีที่แล้ว

    Thankyou sir.

    • @YahooBaba
      @YahooBaba  5 ปีที่แล้ว

      Your Welcome :)

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

    what is the diffrence between one dimensional array two dimensional array and multi dimensional array ?

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

    Great

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

      Thanks Ajit :)

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

    Sir how can we use list function with multidimensional associative array ?

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

      Video wapis dekhain

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

    I think our database structure starts from this video

  • @HarmeetSingh-vy7of
    @HarmeetSingh-vy7of 4 ปีที่แล้ว +2

    How we will do the same with this
    $student=[
    'Krishna' => ['Maths'=>78, 'English'=>88, 'Hindi'=>87],
    'Vishnu' => ['Maths'=>56, 'English'=>67, 'Hindi'=>78],
    'Vikas' => ['Maths'=>65, 'English'=>76, 'Hindi'=>98],
    'Vikram' => ['Maths'=>54, 'English'=>65, 'Hindi'=>76]
    ];

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

    Hello sir I really like your tutorial can you please recommend me best reference book for Php and mysql

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

      Hello ejaz, I don't read any programming book, so I can't recommend any book related to PHP.

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

      @@YahooBaba ok thanks sir
      I really appriciat you for giving such a great lectures
      Thanks

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

    Sir mai aphice silh rahaho lekin ak problem hai. job mai 20 ya 30 tutorial dekhtaho tob mai picla jo hai oh thoda thoda bol jata ho icce bach ne ke liye apke pas koyi solution hai please jaror batana

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

      Dear es ka ek he solution hai PRACTICE -- PRACTICE -- PRACTICE aapko baar baar practice karni hogi. Jaise aapko malum hoga ki school mein seedhe he aap english ke sentences banana nahi seekhe the..... aapne pehle A B C ki practice ke thi , baad mein words banane ki aur fir sentences banane ki. Bilkul waise he starting mein baar baar practice karne se he aapko programming ke concept yaad rehne lag jayenge.

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

      @@YahooBaba thanks sir, or practice keice koro agar apke pas koyi web site ya koyi torika hei to Please batadena..

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

    💯💯💯🙏🙏❤️❤️❣️❣️👍👍

  • @jeetghodasra3273
    @jeetghodasra3273 5 ปีที่แล้ว

    Awesome

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

      Thanks AWT :)

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

    Hello there! How can I write that multidimensional associative array in foreach loop with list?

  • @mayursaroj4360
    @mayursaroj4360 5 ปีที่แล้ว

    Is there any way to reload browser automatically after code saved in vscode for php..plz help

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

    😮

  • @AnujGupta-kw9sw
    @AnujGupta-kw9sw 4 ปีที่แล้ว

    Sir, how can I print multiple associative array using list().

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

      You can also read this post: stackoverflow.com/questions/6260565/list-values-in-multi-dimensional-array-in-php

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

    do we have such loop for js also?

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

      No this loop is only in PHP.

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

    Php MySQL ke Baad php ke video banaye hai wo core php ke video complete karne ke Baad dekhne hai ke php MySQL baad

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

      Aap kehna kya chahte ho dekho mujhe hindi, urdu, punjabi aur english aati hai magar aap jis language ka use karte ho wo mujhe samajh nahi aati.

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

      @@YahooBaba sorry Bhai me ye kehna chahta hu ki Jo aapne php MySQL project ke Baad video dale hai na uske bare me baat bata Raha hu

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

    Sir pdf nahi hai Sare video ka

  • @SureshKumar-qx6vh
    @SureshKumar-qx6vh 2 ปีที่แล้ว

    Please check karke bathona

  • @SureshKumar-qx6vh
    @SureshKumar-qx6vh 2 ปีที่แล้ว

    Multiple array me proper output nahi mila

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

    $family =[
    "Brother"=>[1,"ali"],
    "Bhai"=>[2,"aqib"]
    ];
    foreach ($family as list("id"=>$id,"name"=>$name)) {
    //undefined index error aa raha hai is line main.
    echo "$id $name ";
    SIR yeh chal nhi raha.. ,istake btaa den.

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

      Is tarha ke array ke liya foreach with List() kaam nahi karta hai. Aise Array ke liye toh sirf Foreach loop hi kaam karega.

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

    Second example is not working by this method.

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

      send your code file at my email id : hello@yahoobaba.net

  • @SureshKumar-qx6vh
    @SureshKumar-qx6vh 2 ปีที่แล้ว

    Error hora hi

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

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

    how to write list function when outer array has key too. e.g
    $variable = array(
    "Yahoobaba"=>
    [
    "chemistry"=> 85,
    "Math" => 89,
    "English" => 78
    ]
    )
    foreach($variable as list("chemistry", "Math", "English" )
    {
    echo "chemistry"."Math"."English";
    }
    But where I'll write "Yahoobaba" in list function?

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

    throwing an error
    Error message = "syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting :: (T_PAAMAYIM_NEKUDOTAYIM)"
    Error showing at foreach line