/**
  * ( excerpt from http://php.net/manual/en/splfileobject.fscanf.php )
  *
  * Reads a line from the file and interprets it according to the specified
  * format, which is described in the documentation for sprintf().
  *
  * Any whitespace in the format string matches any whitespace in the line
  * from the file. This means that even a tab \t in the format string can
  * match a single space character in the input stream.
  *
  * @format     mixed   The specified format as described in the sprintf()
  *                     documentation.
  *
  * @return     mixed   If only two parameters were passed to this method,
  *                     the values parsed will be returned as an array.
  *                     Otherwise, if optional parameters are passed, the
  *                     function will return the number of assigned values.
  *                     The optional parameters must be passed by reference.
  */
 public function fscanf($format)
 {
     $argc = func_num_args();
     $argv = func_get_args();
     return hphp_splfileobject_fscanf($argc, $this, $format, $argv);
 }
Beispiel #2
0
 /**
  * ( excerpt from http://php.net/manual/en/splfileobject.fscanf.php )
  *
  * Reads a line from the file and interprets it according to the specified
  * format, which is described in the documentation for sprintf().
  *
  * Any whitespace in the format string matches any whitespace in the line
  * from the file. This means that even a tab \t in the format string can
  * match a single space character in the input stream.
  *
  * @format     mixed   The specified format as described in the sprintf()
  *                     documentation.
  *
  * @return     mixed   If only two parameters were passed to this method,
  *                     the values parsed will be returned as an array.
  *                     Otherwise, if optional parameters are passed, the
  *                     function will return the number of assigned values.
  *                     The optional parameters must be passed by reference.
  */
 public function fscanf($format)
 {
     return hphp_splfileobject_fscanf($this);
 }