PHP best practices

  • echo vs print: These functions perform the same task. However, echo is considerably faster than print.
  • Concatenating strings, single quotes (‘) vs double quotes (“): When working with strings, always avoid using double quotes. PHP analyzes the content of double quotes looking for variables, resulting in a longer run.
  • Search case non-sensitive strings and patterns

http://jokiruiz.com/php-best-practices-guide/#.VKGCooVLabo.linkedin

PHP – The Right Way  http://www.phptherightway.com/

Blogbook : PHP | Javascript | Laravel | Corcel | CodeIgniter | VueJs | ReactJs | WordPress