<?php |
class mydb { |
private $user ; |
private $pass ; |
private $host ; |
private $db ; |
|
public function __construct(){ |
$num_args =func_num_args(); |
if ( $num_args >0){ |
$args =func_get_args(); |
$this ->host= $args [0]; |
$this ->user= $args [1]; |
$this ->pass= $args [2]; |
$this ->connect(); |
} |
} |
} |
?> |