A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: need quick and easy php question answered

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    4

    Post need quick and easy php question answered

    is this
    PHP Code:
    if(--$ready <= 0){
    continue;

    the same as this:
    PHP Code:
    if($ready <= 1){
    continue;

    Last edited by bradosia; 01-23-2011 at 03:10 PM.

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    yes and no: the first version changes the value of $ready for later parts of the code (or for iterating a loop), and the second one does not

    Musicman

  3. #3
    Junior Member
    Join Date
    Jun 2009
    Posts
    4
    Thanks now i understand why they put it there.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center