JabaScript and PHP in code - whats the difference?
===

I have this code in my JavaScript part:

    var opConfig = new Product.Options(<?php echo $this->getJsonConfig(); ?>);

The PHP call returns me some string, to make it easy, lets say the string is *abcd*. So this code results in:

*var opConfig = new Product.Options(abcd);*

Now, some lines later, I have this code:

    this.opConfig = new Product.Options(opconfig);

The *opconfig* variable has the same string (abcd), but the results are different, this.opConfig does not look like it looked before. So is there a difference in how I use the string as param? Something I am missing? For me, it should always be the same call, namely:

*new Product.Options(abcd)*

Ideas?