- var_dump: documentation ( source)
- json_encode: documentation ( source)
<?php
$class = "Fcp\Modules\Glorius\Proof\Popups\XyzPopup";
$type = "funds";
$action = "javascript:popup.show(" . json_encode($class).
", {'type': '{$type}'});";
$action2 = "javascript:popup.show(" . json_encode($class, JSON_HEX_QUOT).
", {'type': '{$type}'});";
var_dump($action);