scanf function

From Crys, 8 Years ago, written in PHP, viewed 670 times.
URL https://paste.godclan.hu/view/uF8AzJvE Embed
Download Paste or View Raw
  1. <?php
  2. function scanf($format) {
  3.     $trace = debug_backtrace();
  4.     $args = $trace[0]['args'];
  5.     if (func_num_args() > 1) {
  6.         $inputs = fscanf(STDIN, $format);
  7.         for($i=0;$i<func_num_args()-1;$i++)
  8.             $args[$i+1] = $inputs[$i];
  9.     }
  10. }
  11.  
  12. scanf("%d", &$number);
  13.  
  14. echo $number;
  15. ?>

Replies to scanf function rss

Title Name Language When
Re: scanf function xxxy php 8 Years ago.

Reply to "scanf function"

Here you can reply to the paste above