Location: PHPKode > scripts > dyn_php > dyn_php/dyn_php_example.php
<?php
	
	require_once("dyn_php.class.php");
	
	$obj =& new dyn_php();
	
	$obj->add_scalar("test", 'test_value\'" inserting quotes');
	$obj->add_constant("test", 'test_value\'" inserting quotes');
	$obj->add_constant("const", "const_value");
	$obj->add_array("test", array("var1"));
	
	if ($obj->code("dyn_php_test.php") ) 
		print "Saved...\n";
	else 
		print $obj->error();

?>
Return current item: dyn_php