Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 14th, 2004, 02:14 PM
Friend of Wrox
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default Underscore to be invisible

Does any have a function/code in PHP/Javascript/CSS that will make all underscore in text be invisible when parsed?
For example:

First_Name should be shown as First Name

Your help is appreciated.

Old September 14th, 2004, 03:02 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts

str_replace("_"," ",$your_string);


-Snib <><
Old September 15th, 2004, 09:37 AM
Friend of Wrox
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post

Thank you for your prompt reply.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with underscore arholly Access VBA 8 December 26th, 2006 10:39 AM
visible/invisible stealthdevil Access VBA 4 December 1st, 2006 05:40 PM
UNDERSCORE when parsed jmaronilla PHP Databases 1 September 16th, 2004 11:21 AM
Invisible HyperLink acko ASP.NET 1.x and 2.0 Application Design 2 January 19th, 2004 01:00 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.