Page 1 of 1

how to adapt HTML character entities to PHP?

Posted: Thu Jun 19, 2008 11:23 am
by jggrossm
Hi all -

I want to create a line that's basically:

Code: Select all

print "Search Results with phrase " $phrase "";
Obviously, this won't work b/c the semi-colon at the end of the character entity end the line. I've tried breaking it out into variables, too, and that doesn't run.

How are HTML character entities usually adapted to PHP given they all end in semi-colons?

Thanks in advance!!!

JG

Re: how to adapt HTML character entities to PHP?

Posted: Thu Jun 19, 2008 11:30 am
by Christopher
Have you tried it? That will work fine. Semi-colons between quotes are considered part of the string, not part of the statement.