module PhpRuby::Io::Functions

Public Instance Methods

echo(*args) click to toggle source
# File lib/php_ruby/io/functions.rb, line 5
def echo(*args)
  $stdout.write(args.join(' '))
end
file(fname) click to toggle source
# File lib/php_ruby/io/functions.rb, line 18
def file(fname)
  IO.read(fname)
end
print_r(*args) click to toggle source
sprintf(*args) click to toggle source
# File lib/php_ruby/io/functions.rb, line 13
def sprintf(*args)
  format, *tokens = *args
  format % tokens
end