I'm Ronald Allan Mojica a Typo3/PHP Programmer here in Makati. This is my answer regarding the question above. In almost 3 years of programming using php and mysql I'm glad that I learned alot in my previous and present company and I'm still learning and unlearning things in my chosen career.
This answer is just my own perspective and I cant say that this is the perfect answer for this question . I consisder a good php code if its, consistent and simple.
A good php code is "simple". You can accomplish a much simpler code by using functions or maybe classes(depends on the situation). A long chunks of code(some consider it bad) can be broken into pieces by the use of functions. One of the best practices of good php programming is separating your php code with your template or html.
A good php code is "Consistent". Consistency makes your code easier for others to read. Even your out of the office someone can breakin to your code. One practice is when you are using a function, function oftenly used on fetching some variables and return a process content like(string, integer, etc.). To be consistent if a function is designed to accept on strings, that said function must only accept strings if not an error will be displayed.
This answer is just my own perspective and I cant say that this is the perfect answer for this question . I consisder a good php code if its, consistent and simple.
A good php code is "simple". You can accomplish a much simpler code by using functions or maybe classes(depends on the situation). A long chunks of code(some consider it bad) can be broken into pieces by the use of functions. One of the best practices of good php programming is separating your php code with your template or html.
A good php code is "Consistent". Consistency makes your code easier for others to read. Even your out of the office someone can breakin to your code. One practice is when you are using a function, function oftenly used on fetching some variables and return a process content like(string, integer, etc.). To be consistent if a function is designed to accept on strings, that said function must only accept strings if not an error will be displayed.
