?? ??? ? ??? ??????.
1??: ???????? ?? ??? ??? ????. ??? ??? 2?? ??? ?????.
2??: ??? ??? 2?? ??? ????? ?????.
?? ??:
$table_name =‘table’; $juge = $handle->createCommand("show tables ")->queryAll(); //下面的deep_in_array()方法是自己寫(xiě)的方法,判斷是否存在值是否存在二維數(shù)組中,yii2中調(diào)用本類(lèi)方法,可以去掉action $cun = $this->deep_in_array($table_name,$juge); if(!$cun){ echo json_encode("nodata"); return; }
//判斷二維數(shù)組是否存在值 public function deep_in_array($value, $array) { foreach($array as $item) { if(!is_array($item)) { if ($item == $value) { return true; } else { continue; } } if(in_array($value, $item)) { return true; } else if($this->deep_in_array($value, $item)) { return true; } } return false; }
?? ?? ?? ? ????: yii ????
? ??? Yii? ??????? ??? ???? ????? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

MySQL 8.0? ???? ??? ??? ??? ???? ?????? ???? ????. Windows?? MSI ?? ???? ???? ?? ????. ???? ?? ??? ????, ??? ??, ?? ?? ??, ?? ???? ??, ??? ?? ??? ? ?? ?????? ????? Zip ??? ???? ???? ??? ?????. Linux (? : Ubuntu)? APT? ?? ???? ??? ??? ?????? ?? ??, ?? ???? ??, ??? ?? ?? ? ?? ?? ??? ???? ????. ?? ???? ????, ?? ????? ????, ?? ???? ???, ???? ????, ?? ??? ???? ?? ?? ? ?? ?? ??? ????? ?? ? ???? ??? ???????.

MongoDB?? ?? ??????? ?? ??? "showdbs"??? ???? ????. 1.? ??? ?? ?? ?? ?????? ? ?????. 2. "??"??? ?? ??????? ???? ???? ???? ?? ? ? ????. 3. "??"? "??"? ?? ?? ?????????? ??????. 4. ????? ???? ?? "ListDatabases ()"???? ???? ??? ??? ??????. 5. "db.stats ()"??? ??? ?????? ??? ? ? ????.

?? YII ???? ??? YII ???? ?? ???? ??, ??? ?? ? ?? ?????. 1. ?? ???? ?? ??? ? ?? ??????? ???? YII? ?? ????? ???? ?? ???? ??? ??????. 2. ??? YII? ?? ??? ?? ???? ?? ?? ? ??? ?? ??? ???? ?? ? ???? ???? ??? ?? ????? ?????. 3. ?? ???? ???? ???? ?? ? ?? ?????? ???? ??? ??? ?????. ??? ???? ??? ??? ?? ?? ?????? ?? ?? ???? ???????.

???? SQL ??? ??? ????. 1. CreateTable Create? CreateTableemployees (Idintprimarykey, Namevarchar (100), SalaryDecimal (10,2))? ?? ???? ?????. 2. createIndex? keateIndExIdx_nameOmployees (name)? ?? ???? ????. 3. InsertInto? InsertInto Employeees (ID, Name, Salary) ? (1, 'Johndoe', 75000.00)? ?? ???? ?????. 4. ??? ??????

Eloquent? ???? ???????? ? ???? ???? 4 ?? ?? ??? ????. 1. ??? :: create ([ 'name'=> 'johndoe', 'email'=> 'john@example.com']? ?? ?? ??? ???? ???? ???? ???? ??? ?? ???? ??????. 2. ?? ???? ???? ??? ???? ??????? ?? ??? ???? ??? ?? ?? ?? ??? ??? ????? ?????. 3. FirstorCreate? ???? ?? ??? ?? ???? ??? ???? ?? ???? ?????. 4. UpdateorCreate? ???? ???? ??? ?????? ????????. ??? ? ?? ???? ???? ? ?????.

YII ??? ??? ????? ?? ?? ??? ?? PHP ? ???? ???????. ?? ??? ??? ????. 1. PHP? ???? ?????? Windows?? ?? ??? ??? ?? Composer? ???? ??? ???? ????? ???? ?? ??? ???????. 2. Homebrew? ???? PHP ? Composer? ?? ? ?? ????? ??? ?? ??? ???? ?? ????. 3. Linux (? : Ubuntu)? APT? ?? PHP, Extensions ? Composer? ?? ? ?? ????? ??? Apache ?? Nginx? ???? ???? ??? ?????. ?? ??? ?? ?? ???? ?? ?? ??? ????. PHP? ???? ???? ?? ????? ?????. ??

yiidevelopershouldAdderetothesekeCodingStandards : 1) followpsr-2forconsentindentationandnamingconventions, 2) useyii-specificamingconventionsformodels, ???? ? ?, 3) EmployAutomatedTools-likenifferforconsistency, 4) KeepModelsLeanusin

tosucceedasayiideveloper, ??? : 1) fluencyInphp, ??? ??? ?????
