A The string will become longer because the angular brackets will be converted to
their HTML meta character equivalents
B The string will remain unchanged
C If the string is printed to a browser, the angular brackets will be visible
D If the string is printed to a browser, the angular brackets will not be visible and it
will be interpreted as HTML
E The string is destroyed by the call to htmlentities()
+ ExplanationThis question tests nothing about your knowledge of HTML encoding—and everything about your ability to properly interpret code. The $s function is left unaltered by the call to htmlentities(), which returns the modified string so that it can be assigned to $ss. Therefore, Answers B and D are correct. If you’re wondering whether this is an unfair “trick” question, do keep in mind that, often, the ability to find and resolve bugs revolves around discovering little mistakes like this one.