Skip to content
Some ruby functions for those of us who still have to work with php.
PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
README.md
ruby.php

README.md

Ruby functions for PHP

$a = array(1,2,3);
$b = Ruby::map($a,function($i){return $i*2;});
$b == array(2,4,6); // TRUE
Something went wrong with that request. Please try again.