+ 1
It it a good idea to follow the procedural programming or the Object Oriented Programming in PHP?
Well guys I am just curious to know what you think I seems to understand php procedural programming but it is somehow a bit hell of a process all I want is something that does job faster and give the same result. P.S: Your comments are highly appreciated
1 Antwort
+ 1
i always did it procedural and this goes well for simple i/o tasks like reading databases and process it to html output (like a blog). recently i recognized oop for handling of data objects. it is true that you can use for example a sql responded array with functions. but treating the dataset as an object with dependent methods is neat and appears somewhat more readable/maintainable. in case you process more complex data structures (like a shop or catalogue) within loops i see this as an advantage.