What will be the output of the following PHP code (10)?

43. What will be the output of the following PHP code?

<?php 
$str = addcslashes("IncludeHelp","e");
echo($str); 
?>
  1. Includehelp
  2. IncludeH\elp
  3. Includ\eHelp
  4. Includ\eH\elp

Answer: D) Includ\eH\elp

Explanation:

The addcslashes() function returns a string with backslashes in front of the specified characters.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.