Q:

How to add instruction on input in PHP

In Python, you can add instruction on user input like this;  
foo = input('Enter a number:')

Is there any way to do the same thing in PHP?

A:

The PHP readline() function does this:
<?php
$foo = readline('Enter a number:');
echo $foo;
?>

Read more about it here.

