Practices Archives

PHP Best Practices

Author - Webner

Below are the best practices that should be followed in PHP:

1. define() vs. const

In the early version of PHP, one would use define() function to set constants. But with new updates in PHP gained one more way to declare constants as “const”. They both Read more…