Re: scanf function

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

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

echo $number;
?>

Replies to Re: scanf function rss

Title Name Language When
Re: Re: scanf function Crys php 11 Years ago.

Reply to "Re: scanf function"

Here you can reply to the paste above