PHP Basics: Variables

Posted by: Admin  :  Category: Php

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Variables allow you to store data values in memory and are very easy to create.

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

25 Responses to “PHP Basics: Variables”

  1. MrEchoitachi Says:

    @daniel1982 Why don’t you make your own tutorial? eh?

  2. metallion25 Says:

    Thanks for the GREAT tutorials Alex! I just have a question. Can you have one variable, to have different values on different/separate pages? For example $x = Alex on a page something.php and $x = Garrett on a page called somethingelse.php ? Or will the two interfere?

  3. samiwistler Says:

    PHP gurus

  4. Mo7ammadDaoud Says:

    @daniel1982 lol you ask & reply your self 😛

  5. wushuCross Says:

    @phpacademy Kudos my friend, your videos are great!

  6. wushuCross Says:

    @daniel1982 fussy fussy fussy – go make a vid and explain!

  7. lordmassk007 Says:

    @phpacademy

    keep up the good work.. just LOL dont bother with idiots!!
    gotta love you

  8. monofono2006 Says:

    what if i want to type a dollar sign $ without it thinking it is a variable, how do i do that, is there like some kind of code…

  9. dimashur Says:

    Want to learn PHP as fast as possible? All you need to know in one detailed book. The book for the complete beginner and expert as well.
    Only for 39.95$. You won’t find a better guide.
    4edba7wkkmpx2u4iw73kgduf4d(dot)hop(dot)clickbank(dot)net
    (replace (dot) with a dot…)

  10. GamingJediPwns Says:

    @phpacademy Don’t worry about it buddy. You will always get ungrateful trolls, its the way of the internet. I am sure 99% of the people that watch these tutorials, really appreciate it. Just take no notice of the 1%

  11. jellybellies132 Says:

    @phpacademy Even though I don’t agree on how he said it, I agree with him. = and == are a lot different in programming and the earlier a new programmer can grasp that the better. You stating that it equals it (which is not true it does not equal it) may confuse beginners and cause errors in the future.

  12. elcrimer Says:

    In this tut Alex talks about :
    1- How to declare variables Using the ” $ ” .
    2- How to assign strings/numerical values to a variable using ” = ” .
    3- How to use variables within the echo command .
    4- How to concatenate strings using ” . ” …

  13. saadlulu Says:

    Alex is 19 0.o ?? no way !

  14. saadlulu Says:

    @phpacademy dont worry about that fool Mr.Alex,
    u know how much we love u 🙂
    and yeah that daniel is not making much of a point, watching a tutorial doenst mean we suck at programming we just love honing our skills.

  15. mhengmheng24 Says:

    i agree!

  16. phpacademy Says:

    In the context I used it, only an idiot wouldn’t know what I meant. Everyone else seems to be happy. I don’t appreciate comments like that when I’m creating tutorials for free. You’re complaining about something very illogical.

  17. andresoares77 Says:

    Well pointed but a little harsh and aggressive on the
    “end up making a fool of yourself, like this guy. ” comment.

  18. pranav542002 Says:

    go to mahaphpcode site and play with php

  19. bm0286 Says:

    i iust started learning php ,those videos that are very helpful for me.i really like it.
    and all i can say that is thank u very much.hopefully you will make more great videos like that.

  20. NyuuChan17 Says:

    I thank you very much. x)

  21. daniel1982 Says:

    CORRECTION ALERT!

    When you say $i = 1 you don’t say that $i equeals 1, you ASSIGN the value 1 to the variable $i.

    “So what?”

    Yeah, so what? In every programming-language = means ‘assign’, while == means ‘equals’. It is very important to be able to put in to words excactly what you’re doing from the very beginning. Else you will end up making a fool of yourself, like this guy.

  22. MultiLern Says:

    THX SO MUCH!!! I’ve been trying to find a descent php tutorial for weeks

  23. 8ballbreakandrun Says:

    It’s guys like you that are going to change the world. Who would pay to go to a classroom to learn this when there are guys like you ready to share your knowledge with the world for free! Thanks so much for this!

  24. Metman19 Says:

    thanks a lot for this tutorial for ppl learning Php

  25. craponnaruto Says:

    I LOVE PHP NOW!

Leave a Reply

*