On Wednesday 26 November 2003 06:32, Jas wrote: > Not sure how to do this but I have a call to a database which pulls the > contents of a table into an array and I need a eregi string which will > sift through the contents and put a line break (i.e. \n or <br>) after > each ";", "}" or "{".
If that is exactly what you need, then use str_replace(). >here is what I have so far... [snip] -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* The Illiterati Programus Canto 1: A program is a lot like a nose: Sometimes it runs, and sometimes it blows. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php