Hi Wretha, No, it's just a hobby as I'm still learning (I'm retired - who said retarded?). I only *try* and answer the simpler questions as I remember when I first started :-)
Just come up with an even more elegant way, as I've just found arrayfilter(); Saves having that awful array. <?php $title = "Robert <123> #*&%$£! to the Say's it and or Hello too a if to"; echo $title."<br /><br />"; $filename = strtolower($title); $filename = preg_replace("/[^a-z ]/", "", $filename); function smallWords($value) { return (strlen($value) >=4); } $filename = explode(" ", $filename); $filename = array_filter($filename, "smallWords"); $filename = implode("_", $filename); $filename = trim($filename).".html"; echo $filename; ?> The downloadable php manual is great, but it takes a lot of wadding through. Bob E. p.s. Girish, you were right about implode("_", $filename); ----- Original Message ----- From: "W. Smith" <[EMAIL PROTECTED]> To: <php-list@yahoogroups.com> Sent: Friday, April 07, 2006 2:35 AM Subject: [php-list] Re: Converting title > Hello Bob, (aka my angel!), > > Now it works perfectly! Thank you so much, this has been a great > learning experience, I still do not understand PHP, but I know much > more than I did before. I appreciate all the help you gave, do you do > this sort of work for a living or do you do it as a hobby? Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/