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
http://phpvideos.net (for better quality)
Learn the very basics of Object Oriented programming in php
Duration : 0:6:16
Great vid!
Great vid!
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.
phpDesigner
phpDesigner
what editor are you …
what editor are you using?
Pretty pointless; …
Pretty pointless; you could do the exact same stuff with a simple function. This does not explain to usefulness of OOP.
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
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.
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.
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.
Yes, return is the …
Yes, return is the preferred way.
like using return …
like using return inside the class and echo outside the class?
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.
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”.
ucfirst() is a …
ucfirst() is a prebuilt php function, like most functions used for simple purposes in php.
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!
finally a tutorial …
finally a tutorial which starts from the very beginning, thanks!
dude you gotta make …
dude you gotta make more tutorials on oo php please
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?
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 ?
I liked your vid. …
I liked your vid. Cool to see you actually working on the screen and writing the code. Good work.