PHP is also useful for interactions with relational databases such as MySQL. These databases can store users/passwords, a store catalog, or even the pages of a website. For example, WordPress uses a PHP framework and loads the various bits and pieces from a database.
I learned PHP using procedural technique. This means that the code flows from one line to the next employing loops and functions in order to have ongoing processing. The newer method for using PHP is an object-oriented approach. This involves creating objects with properties and methods to accomplish the same goals. Object oriented code runs slightly slower but this is offset by enhanced readability, avoidance of conflicts, and reusability. These advantages are even more pronounced when coding is performed in groups.
So try your hand at PHP and serve up something delicious!