How can user input be incorporated into PHP scripts run in the console?

To incorporate user input into PHP scripts run in the console, you can use the `fgets(STDIN)` function to read input from the console. This function reads a line from the standard input (console) and returns it as a string. You can then use this input in your PHP script for processing.

<?php
echo "Enter your name: ";
$name = fgets(STDIN);
echo "Hello, $name";
?>