c1
This commit is contained in:
40
www/first.loc/api/Class/DataForms.php
Normal file
40
www/first.loc/api/Class/DataForms.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
class DataForms{
|
||||
|
||||
public function __construct($db)
|
||||
{
|
||||
$this->conn = $db;
|
||||
}
|
||||
|
||||
function to_UTF8($arr) {
|
||||
foreach($arr as $k=>$v){
|
||||
$v=iconv('Windows-1251','UTF-8',$v);
|
||||
$arr[$k]=$v;
|
||||
}
|
||||
return $arr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Query()
|
||||
{
|
||||
|
||||
$result=[
|
||||
1,2,3
|
||||
];
|
||||
|
||||
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user