Skip to content

Tag Archives: PHP

PHP.JS – Use PHP functions in JavaScript

03-Feb-09

PHP.JS is an open source project in which to port PHP functions to JavaScript. The library is developed by Kevin van Zonneveld and his contributors, and they have been working hard in adding more functions into it. By including this library into your own web projects, you can use those higher-level PHP functions such as file_get_contents(), [...]

Gregorian to Lunar Calendar Converter

25-Dec-08

Sometimes I just have the urge to know what the Lunar date of someone’s birthday or a Chinese festival when no Chinese calendar is around. And, I am just getting annoyed when my friends keep asking me to help them find an online date converter. So I made it myself and I put it on [...]

PHP: Convert If to Switch

23-Dec-08

I have been being asked by some friends of mine, that is in PHP language how to convert If statement into Switch statement (in some cases, using Switch is for shortening code).
At first, I thought that Switch was just only for ‘equal’ comparison. But actually it is more than just equal. So I did a [...]