Answers for "How to not use directly global variables in PHP"

0

How to not use directly global variables in PHP

<?php
$search_html = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_SPECIAL_CHARS);
$search_url = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_ENCODED);
echo "Vous avez recherché $search_html.\n";
echo "<a href='?search=$search_url'>Nouvelle recherche.</a>";
?>
Posted by: Guest on April-19-2021

Code answers related to "How to not use directly global variables in PHP"

Browse Popular Code Answers by Language