Printf print something directly Sprintf place it into a variable first
8 data types available Integer Float/Double Boolean String Array Object Null Resource Integers: Integers are whole numbers, without a decimal point (…, -2, -1, 0, 1, 2, …) Floating Point Numbers
Recursion occurs when a function calls itself. There’s nearly always an end condition of some sort — known as the base case — otherwise, the function would continue to call itself indefinitely
*** Accepting unlimited argument in a function is a new feature of PHP 7
***Fix the return type of a function in order to avoid errors.
*In PHP there are two string operators. 1.Concatenation Operator (‘.’) It returns the concatenation of its right and left arguments 2.concatenating assignment operator (‘.=’) It appends the argument on the right side
According to PHP Standard Recommendations (PSR) – 1. Class names MUST be declared in StudlyCaps. 2. Class constants MUST be declared in all upper case with underscore separators. 3. Method names MUST