[buddypress-trac] [BuddyPress] #2985: Performance Tune Loops by Removing Functions from Their Declarations

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Jun 4 07:32:50 UTC 2011


#2985: Performance Tune Loops by Removing Functions from Their Declarations
-------------------------+-------------------------------------------------
  Reporter:  jeffsayre   |      Owner:
      Type:              |     Status:  new
  enhancement            |  Milestone:  Awaiting Review
  Priority:  normal      |    Version:  1.3
 Component:  Core        |   Keywords:  has-patch, needs-testing, dev-
Resolution:              |  feedback
-------------------------+-------------------------------------------------

Comment (by r-a-y):

 You could also do this:


 {{{
 for ( $i = 0, $count = count($array); $i < $count; $i++ ) {

      //stuff

 }
 }}}

 Read this article for reference:
 http://php.net/manual/en/control-structures.for.php

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2985#comment:7>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list