RustPHP Functions

High-performance PHP extension functions powered by Rust engine.

FUNCTION

println()

Console output function.


<?php
require "vendor/autoload.php";

use RustPHP\Engine;

Engine::println("Hello RustPHP");

Output:


Hello RustPHP
FUNCTION

output()

File or raw output renderer.


<?php
require "vendor/autoload.php";

use RustPHP\Engine;

Engine::output("hello.txt");

OR raw string:


Engine::output("Hello World");

Behavior:

FUNCTION

explode()

String splitter function.


<?php
require "vendor/autoload.php";

use RustPHP\Engine;

$result = Engine::explode(",", "apple,banana,orange");

print_r($result);

Output:


Array
(
  [0] => apple
  [1] => banana
  [2] => orange
)