Array

array as function parameter

$a=array("table_name"=>"userinfo");
echo $crud->find($a);

return array value

$sql["table_name"];

array inside string

public function find($sql) {
        $query="select * from {$sql["table_name"]}";
        echo $query; 
    }