Question:What will be the net effect of running the following script on the $s string? (Choose 2)
<?php
  $s = '<p>Hello</p>';
  $ss = htmlentities ($s);
  echo $s;
?>
 

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() 

+ Answer
+ Explanation
+ Report
Total Preview: 1431

Copyright © 2024. Powered by Intellect Software Ltd