- GET Requests
- POST/PUT Requests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Repositories; | |
| interface PostRepositoryInterface { | |
| public function all(); | |
| public function take(int $limit); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // our php array for example, if you using data from database, make it | |
| $array = [ | |
| 252, 124, 40, 29, 1 | |
| ]; | |
| // stars, 1 - 5 | |
| $star = [ | |
| 5, 4, 3, 2, 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "stdio.h" | |
| #include "iostream" | |
| using namespace std; | |
| int main() | |
| { | |
| int luas = 0, panjang = 0, lebar = 0; | |
| printf("%s" "\n", "Calculate the area of a rectangle"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function setActive($path, $active = 'active'){ | |
| return call_user_func_array('Request::is', (array) $path) ? $active : ''; | |
| } |
NewerOlder