Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: min(five, two)?
(Example: nine)

The Note You're Voting On

Patrick nospam at nospam mesopia dot com
20 years ago
Not sure what's going on here but I've run into a problem that others might face as well...

<?php

$translations
= array_flip(get_html_translation_table(HTML_ENTITIES,ENT_QUOTES));

?>

returns the single quote ' as being equal to &#39; while

<?php

$translatedString
= htmlentities($string,ENT_QUOTES);

?>
returns it as being equal to &#039;

I've had to do a specific string replacement for the time being... Not sure if it's an issue with the function or the array manipulation.

-Pat

<< Back to user notes page

To Top