==基本處理== 運用foreach將陣列內容印出 $paple = ['bryan',918,'make']; // $key 與 $getpeple 都可制定 foreach ($paple as $key => $getpeple) { echo('這位是' . $getpeple ."\r\n" );
9/29/2022==物件建立== 我們可以建立一個物件的概念、例如建立一個車子的骨架跟顏色等 class Cart { public $man = 90; public function getMan() { return $this->man;
9/29/2022==array_column== 取得陣列的特定的值 array_column(第一個參數為變數,第二個是要指定的key) $row = [ ['id' => 1, 'name' => 'bryan'], ['id' => 2, 'name' => 'john'], ['id' => 3, 'name' => 'lala'],
9/29/2022透過以下composer指令可安裝 laravel (example-app可自己取名) composer create-project laravel/laravel example-app 官網位置 : https://laravel.com/docs/8.x#installation-via-composer Laravel架構介紹 Console - 指令相關 Exceptions - 除錯相關
9/29/2022or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up