Jump to content

Archived

This topic is now archived and is closed to further replies.

essjay_d12

echo problem how to include an ' in line

Recommended Posts

Hi,

I want to echo out the following...

echo ' My Company's information';

but because there's an ' included PHP picks up an error.

How can i include an '

Thanks

D

Share this post


Link to post
Share on other sites
[code] echo ' My Company\'s information';[/code]
or
[code] echo "My Company's information";[/code]

[!--quoteo(post=378428:date=May 30 2006, 07:43 PM:name=Essjay_d12)--][div class=\'quotetop\']QUOTE(Essjay_d12 @ May 30 2006, 07:43 PM) [snapback]378428[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hi,

I want to echo out the following...

echo ' My Company's information';

but because there's an ' included PHP picks up an error.

How can i include an '

Thanks

D
[/quote]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.