How to run php,here(in codechef)?

Dear reader and eager helper,
I am in a php learning stage, I couldn’t find any videos regarding taking input or scanning sample input .
Could anyone help me solve a problem using PHP code.
Any advice and guidance are really appreciated.
Best regards from Lungchuingam

You can check this submission on REACHTARGET problem to learn how to take input in PHP.


fscanf(STDIN, "%d", $t);
    fscanf(STDIN, "%d %d", $y,$x);
    echo ($y-$x)."\n";



Generally it is a good idea to view other people’s submission to learn and understand new concepts and their implementations.

Thank you @justani I really appreciate your help and suggestions.
Best regards and prayers from Lungchuingam