translate some C code to PHP code

Job ID: 34000533

Budget: €8 – €30 EUR

I have a short c code (12 lines) that needs to be translated to PHP so we can use it on a web app.
Related categories: PHP C Programming C# Programming C++ Programming