
Maybe he wants to break the loop if he encounters a certain condition, and not necessarily go to the end of his data. try $loop = true; while($loop){ $data = fgetcsv($handle, 1000, ","); if($arraysize...................... //and to break the loop if(condition){ $loop = false; } } Be careful with this thoough. Make sure your condition always happens before the end of your data. On Thu, Sep 24, 2009 at 9:21 AM, <ashok+skunkworks@parliaments.info<ashok%2Bskunkworks@parliaments.info>
wrote:
On Thu, Sep 24, 2009 at 9:14 AM, thea maina wrote:
Iterate this for infinity. - Hi guys, i hit a mind lock.. How can i iterate this for infinity. thanks ----------------------------------------------------------------
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
maybe this ?
while (TRUE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { } }
but are you dealing with infinite data ? _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
-- www.dealcent.com - Your electronics shop www.golavish.com - The travel and leisure www.raccuddasys.com - code Development issues