<p>In my webpage, I want the website to greet the user, but the username is surrounded by 'single quotations'. Since this isn't to prevent MySQL injection, i just want to remove quotes around my name on the display page.</p>

<p>Ex: Welcome 'user'!
I'm trying to find the way where i can strip the quotations around the user and have it display on the example below.</p>

<p>Ex: Welcome user!</p>

<p>The only line of code that I can think relating is this:</p>

<p>$login = $_SESSION['login'];</p>

<p>Does anyone know how to strip single lines quotes?</p>

I think the easiest way would be to use the trim() function. It usually trims whitespace characters, but you may pass it a string containing characters you want to be removed:
```
```
echo 'Welcome ' . trim($login, "'");
```
```
See
http://php.net/trim