Solution to improve your PHP Code

PHP - PracticesJust improve the readability, maintainability, and usability of your PHP code.

Use a functions

 To separate the code into individual functions.

Proper name for functions and variables

Give the exact and identifying names to your functions and variables

Avoid nested conditions

Instead of nested condition, try to use functions with return statement.

Use a PHP Built-in functions

Lets try with existing PHP functions, instead of writing your own code. Already lots of PHP Built-in function are available.

Search following URL


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s