If I have an entry in my database, consisting of two words connected with an undescore, i.e.: red_block and, say I want to display it as separate words without the undescore like: red block how do I remove this underscore?
maybe not exactly what your looking for but it gets rid of the _
<? $string = $row['block']; // row['block'] contains something like red_block $string = str_replace("_", " ", $string); echo $string; ?>
Yep that would be the simplest way to do it.
Perfect! I thought it was going to be something similar, but never thought it was that simple.