Câu hỏi pv php + mysql
PHP 1) What will be the output of those code? var_dump(0123 == 123); var_dump( '0123' == 123); var_dump( '0123' === 123); 2) Multiple inheritance là gì? PHP có support ko? class A extends class B, class C PHP ko support. 3) trait php là gì 4) yield 5) How can I measure the speed of code written in PHP --> $before = microtime( true ); for ( $i = 0 ; $i < 100000 ; $i ++) { serialize( $list ); } $after = microtime( true ); echo ( $after - $before )/ $i . " sec/serialize\n" ; 7) How to check how much memory your PHP scripts use memory_get_usage 8) what is difference between: $resp = json_decode(file_get_contents($url), TRUE); $resp = json_decode(@file_get_contents($url), TRUE); -> php suppression error (error control operator) 9) Trong Laravel xem log ở đâu, đã từng dùng third party nào để check log? 10) khai báo shallow() trong route. Shallow Nesting Route? https://laravel.com/docs/8.x/controllers#shallow-nesting 11) authenticate with OA...