How To Set Dynamic Variable in CMS Content

public function setVariableforCMSBlock($BlockId,$VariableArray=""){

	$block = Mage::getModel('cms/block')
	$filter = Mage::getModel('cms/template_filter');
	return $filter->filter($block->getContent());

use of function 
$test['test1'] = 'test1';
$test['test2'] = 'test2';


you can set content in cms block like

Hello this is {{var test1}} and this is another {{var test2}}

OUTPUT :: Hello this is test1 and this is another test2


How to run php file using command prompt(cmd)

Go to
Control pannel->System>Advanced System Settings>Environment Variables
Click new

Variable name : path
Variable value : D:\wamp\bin\php\php5.3.13\ /* path of your php folder */

Click ok

Now you can run you php file using php keyword like below

D:\wamp\www>php hello.php