CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Simple PHP special characters

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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?
View profile  Send private message
montymoose


Posts: 85
Posted: 09/27/2007, 1:25 AM

Ah-ha you're right!

My fault - in the end. Sorry about that.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.