I have a PHP program and one of the code is:
$security_code = trim(fgets(STDIN));
The program prompts a message to ask for inputting a code d