Press enter to see results or esc to cancel.

Wanna buy Bitcoin, and start winning? Just click for join >

Optimize PHP Codes Tricks

  1. Use echo, not print,
  2. Unset your variable when your job is over that variable, especially for large arrays,
  3. Don’t use require_once,
  4. Use full paths for includes,
  5. str_replace is faster than ereg_replace but strtr is fastest.. If you can, use strtr,
  6. Close your database connections when you are finish your process,
  7. Using $table[‘id’] is faster than $table[id],
  8. Use caching systems (memcache etc.)

For more about php optimizing >


Comments are disabled for this post