PHP-style utility functions for LuaJIT applications
- trim
- rtrim
- ltrim
- split
- explode
- ip2long
- long2ip
- ctype_upper
- ctype_lower
- ctype_alpha
- ctype_alnum
- ctype_lower
- ctype_digit
- addslashes
- stripslashes
gcc -O3 -shared -fPIC -I/usr/local/include/luajit-2.0/ -c -o php.o php.c gcc -O3 -shared -fPIC -I/usr/local/include/luajit-2.0/ -ansi -pedantic -Wall -o php.so php.o
luajit-2.0.2 test.lua