Hello,
I have the following php code:
class xsltTransform
{
var $xsl_file;
var $xml_file;
function xsltTransform($xsl_file = '', $xml_file = '')
{
$this->xsl_string=$xsl_file;
$this->xml_string=$xml_file;
}
function applyTransformation()
{
$this->result = '';
$this->msg = xslt_process($this->xsl_string, $this->xml_string, $this->result);
if(!$this->msg) print ("Transformation failed.");
return $this->result;
}
}
$xslt = new xsltTransform($st[0],$xmlstr);
print ($xslt->applyTransformation());
It works fine but not knowing much about object based php coding, I was wondering how I destroy the object at the end like a good boy ?
Cheers - Tim