bypassing item in foreach loop

Discussion in 'PHP' started by mandarj123, Apr 3, 2009.

  1. #1
    i have a code structure like below

    foreach()
    {
    if()
    {
    if()
    {

    }
    }
    else
    {

    }

    }

    in the nested if in first loop i want to chek certain condition if tht condition is not satisfied then i want to move to next item in array how to do it??
     
    mandarj123, Apr 3, 2009 IP
  2. koko5

    koko5 Active Member

    Messages:
    394
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    70
    #2
    Just use continue;

    Regards
     
    koko5, Apr 3, 2009 IP