PHP Object -> JavaScript Object

[email protected] ("Dennis") Wed, 25 Jun 2003 11:47:25 +0800
Newsgroups php.lang
Message-ID <[email protected]>
Hi I am a newbie here

I defined an object and want to parse it into JavaScript
However when I enter the JS function, the object becomes empty.
How can I use the PHP object in JS?

Thanks!

Please see the simpified codes below
<?
class phpObj {
....
}

$parseMe = new phpObj;
?>

<html>
<script lang="javascript">
function eatObj(jsObj) {
// jsObj is empty!
}
</script>
<body>
<a href="javascript: eatObj(<?=$parseMe?>")>Parse the Object!</a>
</body></html>