Git Product home page Git Product logo

20190811-php-puzzlers's Introduction

PHP 机制问答

受邀在 PHPCon China 2019 进行 PHP 机制问答活动,通过精心设计的问答题带给大家一场直接面向代码的有趣体验。

相关材料

如何看题目及取得解答?

  • 先将环境建置起来
    • 确认本机有 PHP 7.3Swoole 4.4.3
    • composer install
    • composer run-script post-autoload-dump
    • composer run-script post-root-package-install
    • composer run-script post-create-project-cmd
  • 所有题目都放在 app/Console/Commands/Puzzle*.php
  • 验证答案:
    • artisan warmup (韩老师热身题)
    • artisan puzzle:{题号} (题号请用 1~13 取代)

警告

设计这些题目的目标,只是为了呈现 PHP 语法在某些特定场景的特性 (或说是坑)。而题目在设计过程中也故意安插了许多陷阱,仅是为了增加活动的趣味性。请千万不要在您的生产代码里这样写程式!会坑到别人也会害到自己的!

20190811-php-puzzlers's People

Contributors

shengyou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

20190811-php-puzzlers's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.