Tag Archives: library

Base62: Convert a number to base 62 for short URLs in PHP

Base62 is a PHP class to convert a number to and from any base between 2-62. There is no native function in PHP to convert upto base 62. The native function base_convert converts numbers upto base 36, ie. using 0-9 … more

Tags: , , , ,
Posted in lab | 3 Comments
• • •

XML2Array: Convert XML to Array in PHP

XML2Array is a class to convert XML to an array in PHP. It returns an array which can be converted back to XML using the Array2XML class. It can take a string XML as input or an object of type … more

Tags: , , , ,
Posted in lab | 10 Comments
• • •

Array2XML: convert PHP Array to XML (with attributes and CDATA)

Array2XML is a class to convert an array in PHP to XML. It allows you to parse a multidimensional array into XML including attributes unlike other scripts available on the internet. It returns the XML in form of DOMDocument object … more

Tags: , , , ,
Posted in lab | 58 Comments
• • •

Cookie Jar: Yummy JSON Cookies (using Prototype)

JavaScript code to store data as JSON strings in cookies. It uses prototype.js to store and retrieve JSON data from cookies. Now we can store and retrieve JavaScript Objects, Arrays, Boolean, String, Number values using cookies, just like storing Java … more

Tags: , , , , , ,
Posted in lab | 36 Comments
• • •

JavaScript/CSS Font Detector

JavaScript code to detect available availability of a particular font in a browser using JavaScript and CSS.

Tags: , , , , ,
Posted in lab | 24 Comments
• • •