Jump to content


Photo

echo problem how to include an ' in line


  • Please log in to reply
1 reply to this topic

#1 essjay_d12

essjay_d12
  • Members
  • PipPipPip
  • Advanced Member
  • 121 posts

Posted 30 May 2006 - 04:43 PM

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

#2 ludwigvb

ludwigvb
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 30 May 2006 - 04:56 PM

echo ' My Company\'s information';
or
echo "My Company's information";

[!--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) View Post[/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]





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users