Re: Re: scanf function

From Crys, 12 Years ago, written in PHP, viewed 941 times. This paste is a reply to Re: scanf function from xxxy - go back
URL https://paste.godclan.hu/view/RQJHfxYu/diff Embed
Viewing differences between Re: scanf function and Re: Re: scanf function
<?php
function scanf($format) {
    $trace = debug_backtrace();
    $args = $trace[0]['args'];
    $argc = func_num_args();
    $inputs = fscanf(STDIN, $format);
              $n = count($inputs);
          
count($inputs);
    
if($argc <= $n)
            
$n)
        
$n = $argc - 1;
          
1;
    
for($i=0;$i<$n;$i++)
            $args[$i+1] = $inputs[$i];
              return $n;
}

scanf("%d", &$number);

echo $number;
?>

Reply to "Re: Re: scanf function"

Here you can reply to the paste above