Book Image

PhpStorm Cookbook

By : Mukund Chaudhary
Book Image

PhpStorm Cookbook

By: Mukund Chaudhary

Overview of this book

Table of Contents (16 chapters)
PhpStorm Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a new PHP class


Having come to the kitchen, you should be prepared to get your hands dirty while cooking. You will have to face the class spills, member variable splashes, and literal wetness of sweat when you try to bake the data structures; they might be too hot to handle. You might end up causing a burning sensation inside you (out of control acidity; pun intended). You must be prepared to have mistakenly added less (syntactic) sugar, thought of incorrect salt handling algorithm. All sorts of cooking issues would be there to trouble you, which might make you leave cooking altogether and run away... scary? Maybe yes... but you will not tire, you will not falter, and you will not fail dear friends, Romans and countrymen!

Getting ready

Some fundamentals... some programmers always talk class. In fact, all should. If you have always wondered what exactly a class is, you need to understand a datatype first. You must now have started feeling nostalgic, recalling your school days when...