PHP Optimization Tips
There are many ways to improve the way you write your PHP code. And we can easily increase the efficiency of our code just by putting in some effort during development. However, there might be some unknown information that you might not aware in PHP that can help improve your code. In this article, i will try to provide you with some tips that can serve as micro optimization for your code and could also add on to the list of knowledge that you have in PHP. We will also look at many benchmarking of these tips where possible!
MySQL Innodb Settings
From 5.5 InnoDB is the default engine, so these parameters are even more important for performance than before. The most important ones are:
TokuDB is an open source , high performance storage engine for MySql and MariaDB that improves scalability and efficiency. TokuDB is for Big Data data application with demanding requirements that not met by your current storage engine and reduce the development costs associated with scaling and optimization efforts.
This plugin used for add edit delete and listing module at admin side. Also user can search and sort records.
How To Install?
Tired of the same old looping method to remove values from the array or searching the values in the array and removing them.
This might not be something very new but it can come in handy and might reduce your LOC. I am demonstrating you 2 ways to do so
PHP string can be speficied in four ways, 1) Single quoted, 2) Double quoted , 3) heredoc and 4) newdoc.
First two methods are very common and last two are used rarely.
While using heredoc, one can not simply use session variable in heredoc like normal variable,