Jump to content

Both quotations used in code, but need to quote again.


joemamahunt

Recommended Posts

Hello, I ran into this error and can't seem to think of a way out of it.

This may be dumb to ask, but this is my first time running into this.

 

For example, something like this:

echo '<a href="javascript:popup('file.php');">click here</a>';

 

It obviously gives me the error: unexpected T_STRING, expecting ',' or ';'

Because the single quotation is being used twice.

 

 

How can I use that code without errors?

Is there a third quotation I don't know about?

 

Archived

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

×
×
  • Create New...

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.