How to continue a php script after using exit() / die()
问题 For example i have the following script. in this case i want to get the value of X1 and Y1 but the the exit() is not letting me to do so please help thanks in advance and special thanks to Mark Setchell :P (if he sees this) image link $im = imagecreatefromjpeg("omr.jpg"); for($x=0;$x<100;$x++) { for($y=0;$y<100;$y++) { $rgb = imagecolorat($im,$x,$y); $r = ($rgb >> 16) & 0xFF; $g = ($rgb >> 8) & 0xFF; $b = $rgb & 0xFF; if($r<128 && $g<128 && $b<128){ printf("%d,%d: %d,%d,%d\n",$x,$y,$r,$g,$b);