From: "Kontra, Gergely" Date: 2002-04-30T00:53:53+09:00 Subject: lineending-independend chomp Hi! I've noticed, that chop can handle both linux and windows lineendings, but always chops 1 or 2 characters. On the other hand chomp is safe, but it cannot handle unknown style line-endings. Do you know a smart solution? (Would be nice for network programming) Gergo +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+ | Email: kgergely@mcl.hu, kgergely@turul.eet.bme.hu | | URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 | +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+ . Magyar php mirror es magyar php dokumentacio: http://hu.php.net