filmov
tv
PHP Tutorial: How To: Avoid Using Foreach Loops [Quick Tip]

Показать описание
In this video I discuss a quick tip that will greatly improve the quality of your code. In it I discuss how to remove the necessity for using a foreach loop to output the contents of an array, and replacing it with a much more efficient function "implode."
For obvious reasons it is impossible to remove all loops from your code, but seeing as they are one of the slowest processes that PHP can perform, it is generally a good idea to cut them back where possible.
This quick tip is one in a series of other quick tips, please check those out!
If you have any comments or questions, please feel free to send me a message or leave me a comment bellow!
For obvious reasons it is impossible to remove all loops from your code, but seeing as they are one of the slowest processes that PHP can perform, it is generally a good idea to cut them back where possible.
This quick tip is one in a series of other quick tips, please check those out!
If you have any comments or questions, please feel free to send me a message or leave me a comment bellow!