Learn PHP Now - Simple OOP

http://phpvideos.net (for better quality)
Learn the very basics of Object Oriented programming in php

Duration : 0:6:16


Technorati Tags: , , , , ,

20 Responses to “Learn PHP Now - Simple OOP”

  • andrefortuna84 says:

    Great vid!
    Great vid!

  • captainspiwtf says:

    Stop busting on the …
    Stop busting on the guy, the heading says simple oop. The videos point is to give you guys an overview of how to use a class with an object.

    Use it or shut it.

  • shoT0 says:

    phpDesigner
    phpDesigner

  • Jakrahal says:

    what editor are you …
    what editor are you using?

  • mahcuz says:

    Pretty pointless; …
    Pretty pointless; you could do the exact same stuff with a simple function. This does not explain to usefulness of OOP.

  • carnagerpm says:

    ok people you gues …
    ok people you gues are forgetting that he is trying to TEACH NON PROGRAMMERS THIS as a non programmer or some one learning I echo a lot of function or classes cause i’m learning. So this may not be the right way but its the way for must of us to understand. This is why must people teaching PHP fail, and this video explains how data is sent the easy way. PS thanks for VID

  • zachwingo says:

    You do not know …
    You do not know what you’re talking about. You are wrong. I have dozens of books sitting on my desk that time and time again use examples of echoing or printing within a method of a class. Virtually all OOP languages like Java, C++ and C# have countless objects that have a display property. You cannot point to a single authoritative source that would suggest printing within a method is bad practice. You are confused with procedural programming.

  • YBH305 says:

    Majority of the …
    Majority of the time return will be the best way to go. Any design part of the script (IE. echoes) should be left outside of your classes.

  • zachwingo says:

    No you are …
    No you are incorrect. There is nothing wrong or incorrect about using print or echo inside a class method. In fact this is necessary and desired in many cases. The entire point of using classes rather than functions is to encapsulate the data and provide all possible methods necessary to work with that data including methods to display the data. If you were using just a function it would be bad practice, but we’re talking about methods inside a class which is the preferred way.

  • YBH305 says:

    Yes, return is the …
    Yes, return is the preferred way.

  • franckmercado says:

    like using return …
    like using return inside the class and echo outside the class?

  • YBH305 says:

    There is nothing …
    There is nothing wrong with echoing but it shouldn’t be done, its not considered proper use of OOP ways. If you are going to echo something, do it outside the class.

  • zachwingo says:

    You obviously don’t …
    You obviously don’t understand what OOP is or you didn’t watch the whole video because you are wrong.

    There is nothing wrong with echoing values in a function, it all depends on what the function is for. The purpose of functions is to perform a task and provide abstraction. Sometimes that task is to simply echo something out “from within the function”.

  • LOLDISNEYLAND says:

    ucfirst() is a …
    ucfirst() is a prebuilt php function, like most functions used for simple purposes in php.

  • kjarli says:

    Note that this is …
    Note that this is NOT OOP!

    This is just an explanation of how you work with classes in php!

    Note that echoing values in a function is Incorrect!

  • 3device says:

    finally a tutorial …
    finally a tutorial which starts from the very beginning, thanks!

  • CamiloSanchez1979 says:

    dude you gotta make …
    dude you gotta make more tutorials on oo php please

  • SoNowIScream says:

    this is more of a …
    this is more of a functions tutorial :/ people who want to learn oop should already know what a function is/does. so why not just explain the oop stuff?

  • veryseriousperson says:

    but ucfirst the …
    but ucfirst the funcion that capitalizes the first letter is not defined within this php file. is there an explanation for that ?

  • dandar says:

    I liked your vid. …
    I liked your vid. Cool to see you actually working on the screen and writing the code. Good work.

Leave a Reply