require "knj/autoload" require "php4r" require "#{$knjpath}php_parser/php_parser" module Knj::Php_parser::Functions def self.my_function(phpvar_arg) Php4r.print("Hejsa.\n") Php4r.print(phpvar_arg + "\n") end end Knj::Php_parser::Functions.my_function("Helloworld.")