Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 5ca99b8

Browse files
committed
Imported the unid() example.
1 parent 6cd14e9 commit 5ca99b8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/examples/unidgen.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env ruby
2+
require 'php'
3+
4+
PHP.eval do
5+
def unid
6+
return md5(uniqid(mt_rand, true))
7+
end
8+
9+
echo "#{unid}\n"
10+
end

0 commit comments

Comments
 (0)