Hi,
I've got some code that produces a forename followed by a surname, with a space in between (as you'd expect). However, I want to remove the space so I can put the names into into a URL, so for example, Ray Watt becomes RayWatt.
$string = "((strlen($lp[0]['e_name']))?$lp[0]['e_name']:'...')";
$somestring = substr_replace ($string,' ','');
Hi,
I have some code that produces a forename and surname, with a space in between (as you'd expect). I'd like to remove the space so that I can put the persons name straight into a URL eg. Ray Watt becomes RayWatt. This is what I have so far:
[code=php]
$string = "((strlen($lp[0]['e_name']))?$lp[0]['e_name']:'...')";
$somestring = substr_replace ($string,' ','');
<h3><a href="http://www.ownwebsite.com/
echo $somestring;
/">testing</a></h3>
The code does show the persons name in the hyperlink. I'd appreciate any advice. Thanks