PHP not accepting single quotes?


All of a sudden, code that has worked for weeks will throw a syntax error on single quotes.

For example

$dueshtml .= '>'. $value .'</option>' . "\n"; 

now throws a parse error, and it executed perfectly before. Changing the single quotes to double quotes and escaping any double quotes in literal text allows the line to pass, but I have no burning desire to go though 675 lines of code to convert all of them.

The single quote is indeed ascii 39.

Any suggestions as to why?

People are also looking for solutions to the problem: php - How to display XML in a dropdown list with JQuery


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.