<GIT List Command>
- git commit - URL
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true | |
| end_of_line = lf | |
| # editorconfig-tools is unable to ignore longs strings or urls |
| <?php | |
| namespace App\Traits; | |
| use App\Models\User; | |
| use DateTime; | |
| use GuzzleHttp\Psr7\Response; | |
| use Illuminate\Events\Dispatcher; | |
| use Laravel\Passport\Bridge\AccessToken; | |
| use Laravel\Passport\Bridge\AccessTokenRepository; |
| php: | |
| image: php:5.6-apache | |
| ports: | |
| - "8080:80" | |
| volumes: | |
| - ./:/var/www/html |
| bill = 0 | |
| products = {} | |
| products[:a] = {:nama => 'sampo', :harga => 25000} | |
| products[:b] = {:nama => 'sikat gigi', :harga => 10000} | |
| products[:c] = {:nama => 'air mineral', :harga => 3000} | |
| products[:d] = {:nama => 'gelas', :harga => 4000} | |
| products[:e] = {:nama => 'piring', :harga => 7000} | |
| loop do | |
| products.each do |key, product| |
| <?php | |
| class A | |
| { | |
| public $foo = 1; | |
| } | |
| $a = new A; | |
| $b = $a; // $a and $b are copies of the same identifier | |
| // ($a) = ($b) = <id> |
| <?php | |
| //Class where we are going to implement typehinting | |
| class Typehinting_Test | |
| { | |
| //Implementation Type Hinting in PHP | |
| //Forcing to pass argument as object of class Test1 | |
| public function type_hint_method(Test1 $parameter) | |
| { | |
| $parameter->test_method(); | |
| } |
| <?php | |
| function bool2str($bool) | |
| { | |
| if ($bool === false) { | |
| return 'FALSE'; | |
| } else { | |
| return 'TRUE'; | |
| } | |
| } |