PHP Collections Objects Tutorial

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • ℹ How to iterate and manipulate objects like an array using collection classes. Combine iterator, array access, and countable interfaces to create powerful collection objects.
    🆓 Join garyclarke.tech for course DISCOUNTS and a FREE Docker + PHP course (worth $49)
    www.garyclarke...
    💻Github repo:
    github.com/Gar...
    👇Follow me on Social Media:
    Twitter: / garyclarketech
    Linkedin: / garyclarketech
    💕Show support:
    www.paypal.com...

КОМЕНТАРІ • 22

  • @davidbarclay6293
    @davidbarclay6293 3 роки тому +1

    Love the videos Gary! Covering all aspect of PHP most don't!

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому +1

      Thanks David...I appreciate it 👍 I'll keep 'em coming!

  • @halimjr
    @halimjr 2 роки тому

    You deserve more subscriber. Your videos are helping me a lot. ♥

  • @viktorkot992
    @viktorkot992 3 роки тому +3

    Gary make symfony course on udemy ?

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому +1

      It's a good suggestion and something I might think about for Symfony 6 if I have the time to do it.

  • @truthteachers
    @truthteachers Рік тому +1

    Hi, why did you have to install doctrine-bundle instead of just doctrine/collections? Is that a bit of overload for the subject? I just tested. The bundle does not install the collections.

    • @GaryClarkeTech
      @GaryClarkeTech  Рік тому

      Honestly can't remember...it's a quite a while since this one. But just install only what you need.

  • @slimyelow
    @slimyelow 3 роки тому +3

    Your voice sounds like Lemmy Kilmister.

  • @pawecyrklaf4729
    @pawecyrklaf4729 3 роки тому +1

    Amazing video :) Good work :)

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому +1

      Thanks Paweł..hope you can put it to use!

  • @markcorrigan293
    @markcorrigan293 Рік тому +2

    Seriously I am lost. I have loaded doctrine/doctrine-bundle via composer and I do not find this path anywhere in vendor. \Doctrine\Common\Collections\ArrayCollections? I.e. I cannot hook into the ArrayCollections capability? Am I missing something. From your course: $citiesCollection = new \Doctrine\Common\Collections\ArrayCollections($cities);
    dd(citiesCollection); Fatal error: Uncaught Error: Class 'Doctrine\Common\Collections\ArrayCollections' not found in G:\xampp\htdocs\collections\collections.php:28 Stack trace: #0 {main} thrown in G:\xampp\htdocs\collections\collections.php on line 28 OK this fixed it: composer require doctrine/collections

  • @ymedjalil
    @ymedjalil 3 роки тому

    Good Job Gary :)

  • @AnoopD2013
    @AnoopD2013 3 роки тому

    Thank you for the great video :)

  • @tracid2008
    @tracid2008 3 роки тому

    Great video. What database UI you're using?

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому

      Thanks Daniel.
      I'm using TablePlus tableplus.com/
      It's very good...works with any kind of DB

    • @tracid2008
      @tracid2008 3 роки тому +1

      @@GaryClarkeTech Does it support Remote Connection via SSH?

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому

      @@tracid2008 Yes