4: Variables In PHP | Procedural PHP Tutorial For Beginners | PHP Tutorial | mmtuts

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • In this PHP tutorial I will show you what variables are and what we use them for in PHP. In PHP we often need to be able to store data for later, and this is what variables helps us do.
    ➤ 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 to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.
    I hope you will find it helpful :)
    Material for this lesson: / lesson-material-42361704

Комментарии • 64

  • @PatheticCat796
    @PatheticCat796 4 года назад +26

    I'm soooo happy you are uploading videos again!! Your work encourages me to continue studying! Please keep uploading! We love your work!

  • @astrosoup
    @astrosoup Год назад +1

    This is great. Clear, concise and to the point. Thank you for uploading this series.

  • @henkgoethals8880
    @henkgoethals8880 4 года назад +2

    Dear Daniel, you're a natural. Keep up the good work. Thanks!

  • @EmihleBooi-yu9zj
    @EmihleBooi-yu9zj 5 месяцев назад +1

    You’re just too good bro✨🤚🏾. You keep it succinct!

  • @naylik2562
    @naylik2562 4 года назад

    Man your vids just saved my ass college project-wise. People like you make the internet worth it.

  • @stephy95
    @stephy95 Год назад

    So easy to understand, and simply represented, thank you sooo much

  • @alittlelightcse2762
    @alittlelightcse2762 4 года назад +2

    Your videos are great!! Wish more people presented tutorials and info in the way you do.

  • @komm11
    @komm11 2 года назад

    I enjoyed the episode! thanks!

  • @averageProgrammer
    @averageProgrammer 4 года назад +1

    please make a video on new PHP features like namespaces, traits and so on...

  • @kingsupremotv2474
    @kingsupremotv2474 4 года назад +1

    Please Sir, continue uploading educational materials. I'm studying how to use PHP for my website Project.

  • @liveindesignful
    @liveindesignful 4 года назад +1

    It's interesting. Your lessons are awesome. But we need more practice lessons, where you show how to use the knowledge which we learn from PHP lessons in real projects. Like it was with Login/Register and reset password system.

  • @GuruPrasad-kx4zt
    @GuruPrasad-kx4zt 4 года назад +1

    Sir just awesome 👌👌👌

  • @christhecoder2818
    @christhecoder2818 4 года назад

    really like the way you've presented these tutorials, great work 👌

  • @ambotlang1810
    @ambotlang1810 4 года назад +2

    Sir... Please make a tutorial for React. Thanks in advance!

  • @ahyonvlogs
    @ahyonvlogs 4 года назад

    This is VERY Helpful !!! Thanks!!!

  • @thesololelveler
    @thesololelveler 2 года назад

    great lesson

  • @navzy6211
    @navzy6211 3 года назад +11

    i have an important question, is learning programming this fun or are you just that good of a teacher?

    • @fadidib8516
      @fadidib8516 3 года назад +2

      He s dat good of a teacher

    • @primeMMA155
      @primeMMA155 3 года назад

      @@fadidib8516 ben je nederlands?

    • @fadidib8516
      @fadidib8516 3 года назад

      @@primeMMA155 i have no clue what u said

    • @primeMMA155
      @primeMMA155 3 года назад

      @@fadidib8516 i asked are you dutch cuzz you
      said i dat

    • @fadidib8516
      @fadidib8516 3 года назад +1

      @@primeMMA155 ah no just the habit from gaming

  • @zaynabali5649
    @zaynabali5649 3 года назад

    Thanks alot bro your amazing

  • @AnonAnonymousymous
    @AnonAnonymousymous 3 года назад

    had to like because of the constant

  • @habibi-oh3ss
    @habibi-oh3ss 4 года назад +1

    hey love your videos. could u do a video on laravel PHP frame work it would blow up

  • @mathiassivertsen4293
    @mathiassivertsen4293 4 года назад

    Du burde virkelig sælge et kursus hvor at du laver en hjemmeside med php fra 0 til 100 - Jeg ville helst sikkert købe det ;)

  • @infamousvoid1834
    @infamousvoid1834 4 года назад

    Other ppl need to see these videos.

  • @miamars.
    @miamars. 4 года назад

    Hey Dani, I really enjoy your tutorials so far, this video and the next one doesn't have subtitles, I can perfectly understand you but they keep me concetrate, if it's an option you can enable I would appreciate it. thanks

  • @jacksons8032
    @jacksons8032 4 года назад +2

    Please, return with episode 19 about mvc.

  • @jaysdecastro606
    @jaysdecastro606 4 года назад

    I love your videos!

  • @llBestBoyll
    @llBestBoyll 2 года назад

    nice 👌🏼

  • @TVSanus
    @TVSanus 4 года назад +2

    CONST vs. define(), what is the main difference between those two?

    • @headlikeahole6548
      @headlikeahole6548 3 года назад

      stackoverflow.com/questions/2447791/define-vs-const

  • @oof2209
    @oof2209 4 года назад

    I've always been using define("CONSTANT", "value"); to define constants, didn't even know you could just do it with the const keyword in php

    • @lukacsaba
      @lukacsaba 4 года назад

      There is a good post about this CONST vs define() here: stackoverflow.com/questions/2447791/define-vs-const
      However it's a bit old, but still reliable.

  • @tenminutetokyo2643
    @tenminutetokyo2643 4 года назад

    Awesome, dood.

  • @vijeyparthasarathy
    @vijeyparthasarathy 3 года назад

    Hi .. thanks a lot for the video .. I am novice and started learning video from your video ... highly helpful..
    I like to know if I can create separate files for variables and include that file in pages so that I will be able to access the variable in the entire website.
    Is it possible and a best practice

  • @christopheraverette5487
    @christopheraverette5487 4 года назад

    It seems like you're busy with php right now, but when you get a chance could you make a guide on how to use wikipedia's api into an object using C#? Literally nobody has a video on it.

  • @victorr8092
    @victorr8092 4 года назад

    Thanks

  • @K_James95
    @K_James95 2 года назад

    How does one create a variable that will be used later?

  • @8thevolution266
    @8thevolution266 4 года назад

    Yaay I'm the first viewer also could you please make a system to like comments or posts

  • @ahmedhashem7279
    @ahmedhashem7279 4 года назад +1

    How can i put classes in arguments of object from another class with enabling load this class with or without loading argument of the class
    example :
    class A{
    public function a(){
    return 'Hi';
    }
    }
    class B{
    public function b(){
    return 'Hello';
    }
    }
    class C{
    public function c(A $a , B $b){
    return 'Bye';
    }
    }
    class D{
    public function d(){
    echo C::c( new A() , new B() ) ;
    echo echo C::c( new B() ) ;
    }
    }
    in this example i want to run 2 methods in class D ,
    so how i make arugment of classes is optional ?
    help pls

  • @AthaxDesigns
    @AthaxDesigns 4 года назад

    Please make a tutorial with phpmailer!

  • @Drirton
    @Drirton 4 года назад +1

    I beg of you to help me understand pagination and login systems. I have no idea how to store data in a browser so people can "Always stay logged in" or anything like that.

    • @kfizzle3920
      @kfizzle3920 4 года назад

      use a session variable with session_start()

  • @wilsonbenavides1520
    @wilsonbenavides1520 4 года назад

    You can start a variable name with underscore.

    • @flamendless
      @flamendless 4 года назад

      Yeah. But what he said in context is "convention"

  • @BigSkidMedia
    @BigSkidMedia 4 года назад

    Good stuff. I learned enough to be dangerous with PHP but I'm back not to learn. Thanks!

  • @sandortudja2087
    @sandortudja2087 3 года назад

    Is this video part of any playlist? If so how can I find it?

    • @Dani_Krossing
      @Dani_Krossing  3 года назад

      The playlist is on my channel page :)

    • @sandortudja2087
      @sandortudja2087 3 года назад

      @@Dani_Krossing can I get the playlist name, please?

  • @aslammessi918
    @aslammessi918 4 года назад

    mr I request php laravel framework series

  • @morakano3355
    @morakano3355 3 года назад

    CONST TAKES = "Capital letters";

  • @manuelsaturday8559
    @manuelsaturday8559 4 года назад +2

    Tutorial #19 on mvc topic please sir. Please someone like this so he can notice my comment. Thanks

  • @Marc-mp6lf
    @Marc-mp6lf 4 года назад

    The constant though

  • @GeorgeIsEpic
    @GeorgeIsEpic 3 года назад

    i only liked bcuz of the CONST YOULIKINGMYVIDEO = true;

  • @hiteshkapdoskar9943
    @hiteshkapdoskar9943 4 года назад

    BrO I am a blogger so for keywords ahref is highly paid so please do it free for us

  • @dontenboi
    @dontenboi 4 года назад

    $haveTattoo = true;

  • @the_maroon_knight
    @the_maroon_knight 4 года назад

    Bro move ahead are you going to keep making videos about PHP in new formats till eternity. Please make something else. Pleeeeaaaaassseeeee

  • @NYAMULAPRODUCTION
    @NYAMULAPRODUCTION 4 месяца назад

    Warning: Undefined variable $im in C:\xampp\htdocs\Scalebranding\wp-content\themes\themify-ultra\themify\img.php on line 296 }
    if (!$im);{
    return false;
    }

    • @Dani_Krossing
      @Dani_Krossing  4 месяца назад +1

      You have a spelling error on n your code, seeing that it can’t find a variable named $im. My guess is that the variable should have been named $img? Based on the fact that your file is named img.php

    • @NYAMULAPRODUCTION
      @NYAMULAPRODUCTION 4 месяца назад

      after making the changes, the result still remains the same. }
      if(!$img);{
      return false;
      }

    • @NYAMULAPRODUCTION
      @NYAMULAPRODUCTION 4 месяца назад

      after making the changes, the result still remains the same. }
      if(!$img);{
      return false;
      }

  • @aslammessi918
    @aslammessi918 4 года назад

    mr I request php laravel framework series