When i use echo
command in my code to print something to the screen it will add %
character to the last of word !
but i face this problem only when i run the PHP application using the Linux terminal using the command php script.php
The code is
<?php
echo "Please Type The Hash : ";
$str = trim(fgets(STDIN,1024));
echo $str;
?>