Everything about PHP namespaces - OOP in PHP | Part 10

Поділитися
Вставка
  • Опубліковано 12 гру 2024
  • In the following video, it is shown:
    What is PHP namespace
    Why they are useful.
    What problems they solve.
    How to create and use them.
    Useful Links
    ---------------------
    Namespaces Cheatsheet:
    github.com/the...
    Namespaces explained:
    developer.hyvo...
    Official Documentation:
    www.php.net/ma...
    Other videos on Object-Oriented PHP
    ------------------------------------------------------------
    Introduction to OOP in PHP - • Introduction to OOP in...
    Creating classes in PHP - • Creating classes, prop...
    Inheritance in PHP - • Inheritance for beginn...
    Interfaces - • Interface in PHP for b...
    Traits - • PHP traits in depth wi...
    Follow me on social media:
    / thecodeholic
    / thecodeholic
    github.com/the...

КОМЕНТАРІ • 34

  • @jere473
    @jere473 4 роки тому +8

    Great tutorial! Really informative and well delivered. So many of other videos lack information and a delivered very slow, your's a perfect. Right to the point

  • @rafaelmartineztomas4911
    @rafaelmartineztomas4911 3 роки тому +2

    Really nice tutorial , no bullshit straight to the point , we need more youtubers of this kind

  • @rajamohammed1275
    @rajamohammed1275 4 роки тому +5

    Glad i found this after a long search. Really an exceptional video. Now i am following The Codeholic :)

    • @TheCodeholic
      @TheCodeholic  4 роки тому

      Thank you man.
      It means a lot for me

  • @petruciucur
    @petruciucur 5 років тому +8

    Excellent tutorial about namespaces. Thanks a lot !

  • @jamesrosemary2932
    @jamesrosemary2932 4 роки тому +4

    I learned sometjhing new today.

  • @pauloamossecuambe7282
    @pauloamossecuambe7282 4 роки тому +2

    Awesome tutorial. Thannks, it really helped a lot

  • @judeleon8485
    @judeleon8485 11 місяців тому

    Well explained! thanks

  • @user-mw1uf8tf7w
    @user-mw1uf8tf7w 5 років тому +2

    Big thanks!

  • @divinealien7620
    @divinealien7620 5 років тому +2

    thank you

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

    Tnx, It was so great

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

    Very good thank you!

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

    very good but if high contrast text in tutorial, then excellent

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

    Thanks for this OOP series, very good. After video 9 things aren't clicking for me :(
    I will keep rewatching I guess

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

    აპოლო 11

  • @codeflows
    @codeflows 4 роки тому

    Thanks for your tutorial. Can you tell me Which editor are you using?

  • @menjil
    @menjil 5 років тому +1

    how about if the CLASS is under => /class/person
    Warning: require_once(class/Person\PersonName.class.php): failed to open stream: No such file or directory in /Users/menjilx/Development/playground/includes/autoloader.php on line 13

    • @TheCodeholic
      @TheCodeholic  5 років тому +3

      You are not using correct path to the file. Use "require_once(__DIR__.'/class/Person/PersonName.php')"
      Pay attention to the uppercase P

    • @menjil
      @menjil 5 років тому

      @@TheCodeholic Thank you so much!
      Finally, I figured it out :)
      My "auloader.php" file.
      ------
      spl_autoload_register('myAutoLoader');
      function myAutoLoader($classname){
      include 'classes/' . str_replace('\\', "/", $classname) . '.class.php';
      }

  • @nour-eddineoumakhlouf5296
    @nour-eddineoumakhlouf5296 3 роки тому

    So, it's like declaring the name of a database in SQL when we have two tables with the same name but in separate databases?

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

    it's like import on javascript, am i right?

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

    Please, does it matter which comes first, the USE statement or the REQUIRE OR INCLUDE statement?

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

      i'm sure you've got your answer by now, but for people who'll read this in the future, by the tutorials i've seen: INCLUDE > REQUIRE>USE
      please someone correct me if needed

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

      @@vooshmoozik6185
      Better late than never. Thanks

  • @pasizdobrekuce
    @pasizdobrekuce 4 роки тому

    Remove "The" ... just "Codeholic" :))) Tnx BTW. Much appreciated.

  • @pater429
    @pater429 4 роки тому

    I think magic functions are not what they teach us they are, i also have questions about the Switch/Case functions. but it is nice to have around just keep this in in mind while developing, dont be a Google.
    nvd.nist.gov/vuln/detail/CVE-2018-19595

  • @lotfialmabree1107
    @lotfialmabree1107 5 років тому

    Peace be upon you
    Guys, there's an agent who asked me.
    The user or customer has a username and password
    The first time the manager activates the user account, the activation is for 24 hours only after 24 hours he can not enter
    How do I do that?
    Help him, please.