> 
> **Possible Duplicate:**  
> 
> [URL Friendly Username in PHP?](https://stackoverflow.com/questions/2103797/url-friendly-username-in-php) 
> 
> 
> 

I have something like this:

```
'mrt1' => 'Zhongxiao Dunhua Sun'

```

which will be included into an anchor link like this:

```
<a href="'. $mrt1 .'">'. $mrt1 .'</a>

```

I want the output to be something like this:

```
<a href="zhongxiao-dunhua-sun">Zhongxiao Dunhua Sun</a>

```

How to do it so that I can turn that name into a URL-frienly string (so I can place it in the href attribute)?