my useful PHP functions in C language