montymoose
Posts: 85
|
| Posted: 09/26/2007, 11:38 AM |
|
Hi,
Wonder if you can help me with a problem, I need to get an @ sign into a PHP string. Can't seem to do it, using any type of code
$to = "webteam@site.co.uk"; doesn't work
$to = "webteam chr(27); site.co.uk"; also doesn't work
How do I get the string to include an @ sign?
Thanks,
Moose
|
 |
 |
peterr
Posts: 5971
|
| Posted: 09/26/2007, 12:26 PM |
|
I think that this works. Why do you think that it doesn't?
For example try:
$to = "webteam@site.co.uk";
echo $to;
exit;
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
DonP
|
| Posted: 09/26/2007, 1:58 PM |
|
It works for me too and I've never had to do anything special for the @
symbol.
DonP
|
|
|
 |
lwismanuel
Posts: 39
|
| Posted: 09/26/2007, 10:31 PM |
|
Did you try using single quote?
|
 |
 |
montymoose
Posts: 85
|
| Posted: 09/27/2007, 1:25 AM |
|
Ah-ha you're right!
My fault - in the end. Sorry about that.
|
 |
 |
|