Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. class MyUploader{
  2.   private $var1 = null;
  3.   private $var2 = null;
  4.   private $extensions = array(
  5.     0 => array("pdf","doc","docx")
  6.     ,1 => array("dft","dxf","dwg")
  7.     ,2 => array("step","igs","x_t")
  8.   );
  9.   [etc...]
  10.  
  11.   function __construct(){
  12.     $this->var1 = 'value1';
  13.     $this->var2 = 'value2';
  14.     [etc...]
  15.   }
  16.  
  17.   function store_file(){}
  18.   function remove_file(){}
  19. }
  20.    
  21. $uploaders = array(
  22.    'ul1' => new Uploader()
  23.    'ul2' => new Uploader()
  24.    etc..
  25. );
  26.  
  27. $uploaders[ul1]->store_file()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top