New to php5 and trying to figure out how to take a perl do/until loop (with like, eq and ne) and convert it to a php do/while loop.
do {
stuff;
more stuff;
}
until ((($title =~ /$level/i) && ($uid ne $rep)) ||
($top==1) ||
(($level eq "") && ($uid ne $rep)));
Not sure how to rewrite the perl until to php while and easily translate my like, not equal and equal.
I've been trying to play with strpos and preg_match and just not seeing it.
Any help/direction would be appreciated.
Thank you!
Mark
do {
stuff;
more stuff;
}
until ((($title =~ /$level/i) && ($uid ne $rep)) ||
($top==1) ||
(($level eq "") && ($uid ne $rep)));
Not sure how to rewrite the perl until to php while and easily translate my like, not equal and equal.
I've been trying to play with strpos and preg_match and just not seeing it.
Any help/direction would be appreciated.
Thank you!
Mark