NYCPHP Meetup

NYPHP.org

[nycphp-talk] Help with while loop

Chris Shiflett shiflett at php.net
Mon Nov 27 15:44:37 EST 2006


Randal Rust wrote:
> If $unique returns false, I need to run some other scripts that will
> *attempt* to uniquely generate a new value, then take the new value
> and run checkDuplicate() again. And so on until $unique returns true.

while (!$unique) {
    /* Change $newTeam */
    $unique = checkDuplicate($newTeam);
}

Hope that helps.

Chris

-- 
Chris Shiflett
http://shiflett.org/



More information about the talk mailing list