PHP - Things to Remember for PHP Functions.

Things to Remember for PHP Functions.

- Any php function starts with function().
- The name of the function cannot start with a number.
- A PHP function cannot be overloaded or redefined.
- PHP functions are case-insensitive.
- The functions can be either user defined or in built.
- Any variable declared and defined within a function is restricted within the function only – Unless, accompanied by “global” keyword.

Things to Remember for PHP Functions.

Things To Remember with PHP :

- To determine a value in a variable, use isset()
- Make variable names case sensitive
- Use super global arrays which are incredible. But use them carefully.
- Objects are passed by reference
- To pass function arguments, use & character , like “&$arg1?
- Use PDO for database connectivity.
- Use for each loop while working with arrays as it is powerful compare to for loop
- Use array functions vigorously which are especially suited for performing database operations
- Use regular expressions for high performance PHP applications.
PHP - Creating Your First PHP Cookie
Creating Your First PHP Cookie - Cookie in PHP is used to identify a user.....
PHP - When would you use htmlentities?
When would you use htmlentities? - HTMLENTITIES disallows users to run malicious code in HTML....
PHP - E-mail With PHP
E-mail With PHP - PHP uses its inbuilt mail() function to send emails from the script...
Post your comment