What potential issue could arise when displaying special characters like "&" in PHP output?
Special characters like "&" in PHP output can cause display issues if not properly encoded. To avoid this problem, you should use the htmlentities() function to convert special characters into their HTML entities. This will ensure that the special characters are displayed correctly in the output.
<?php
$string = "This is a test & example";
echo htmlentities($string);
?>