Hi all!

Does anyone know of a decent PHP port of the textutils.serialize and textutils.unserialize functions in computercraft?

PHP is not one of my strong points or I would write one myself.

Currently I'm just writing PHP variables into a hard coded structure, for example:

echo
"{" .
"[\"id\"] = " . $row['id'] . "," .
"[\"name\"] = \"" . $row['name'] . "\"," .
"[\"data\"] = \"" . $row['data'] . "\"," .
"}";

:)/>

Edit: Excuse the bad spelling, it's late here.
Edit 2: Derped on the escape characters!