Which is faster? Constants, Variables or Variable Arrays

前端 未结 6 1014
清酒与你
清酒与你 2020-12-03 13:38

My current web application uses about 30 or so Contants (DEFINE()). I am reading things that variables are quicker. Provided that there is a naming convention to avoid varia

6条回答
  •  忘掉有多难
    2020-12-03 14:14

    The results of these benchmark still holds; variables are faster than both define() and const: http://planetozh.com/blog/2006/06/php-variables-vs-constants

    http://www.joomlaperformance.com/articles/performance/52_php_programming_tips_43_13_2.html

提交回复
热议问题