PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
Size: 394 bytes
 

Contents

Class file image Download
<?php function getWidget($type) { eval('$obj = new '.$type.'();'); return $obj; }//end getWidget() function getWidget2($type) { $string = '$obj = new '.$type.'();'; eval($string); eval('$string = "";'); return $obj; }//end getWidget2() function getWidget3($type) { $string = '$obj = new '; eval($string.$type.'();'); return $obj; }//end getWidget3() ?>