PHP code example of emeraldinspirations / lib-createconstructcallable

1. Go to this page and download the library: Download emeraldinspirations/lib-createconstructcallable library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

emeraldinspirations / lib-createconstructcallable example snippets




$Callable = ConstructCallableCreator::createConstructCallable(
    ExampleClass::class
);

$NewClass = $Callable($Param1, $Param2);
//Same result as new ExampleClass($Param1, $Param2)