14 | What are Constants in PHP for Beginners | 2023 | Learn PHP Full Course for Beginners

Поділитися
Вставка
  • Опубліковано 1 тра 2023
  • In this PHP tutorial I will talk about constants in PHP, and why we use them in our code! 🙂
    Documentation:
    www.php.net/manual/en/languag...
    ➤ GET ACCESS TO MY LESSON MATERIAL HERE!
    First of all, thank you for all the support you have given me!
    I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
    I am now using Patreon and UA-cam Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.
    I hope you will find it helpful :)
    Memberships: / @dani_krossing
    Patreon: / mmtuts

КОМЕНТАРІ • 14

  • @akashgola2153
    @akashgola2153 2 місяці тому +3

    In love with the series 😍

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

    Hi Daniël, tnx again for your lesson on php. Love it!!

  • @itssacmac
    @itssacmac 7 місяців тому +2

    You are amazing, 🎉🎉❤

  • @kasunkumarasinghe6365
    @kasunkumarasinghe6365 11 місяців тому +2

    thanks dani for the video...

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

    HI dani , thank u so so much for ur time and effort ,

  • @Richterical
    @Richterical 9 днів тому

    legend

  • @realdaly
    @realdaly 2 місяці тому

    5:01
    Defining constants at the top of the script is not merely a habit cuz PHP doesn't have hoisting for variables and constants just like Javascript, meaning if you try to access a variable before you define it you'll get an undefined error.

  • @MohammedAlziko
    @MohammedAlziko 5 місяців тому

    😘😘😘😘😘

  • @mortwain1809
    @mortwain1809 11 місяців тому +1

    Hi Daniel , thnx for video but i have a question for constants. While creating a code constant in visual studio code application, I noticed something when it comes to the constant I created => const bool is_admin = true. I also tried this. When I make const PI = 3.14, I created a constant value in the same way. But why do we use define instead of const? Or can we use both?

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

      The basic difference between these two is that const defines constants at compile time, whereas define() defines them at run time. We can't use the const keyword to declare constant in conditional blocks, while with define() we can achieve that. -from Google

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

    brother please releease all course at once we need that

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

    Me: My name is Daniel, may I have all the records in the database?
    Computer: Sure you are an admin, here you go 😂

  • @user-vp3xs3gw3y
    @user-vp3xs3gw3y Рік тому

    Yes sir, could you talk about the WordPress plugin and theme how to create by you net tutorials.

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

    Please create WordPress plugin by using your php skills