Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

PHP 机智问答

76 views

Published on

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

Published in: Internet
  • Be the first to comment

  • Be the first to like this

PHP 机智问答

  1. 1. PHP — (Shengyou) & (Albert) 2019/08/11
  2. 2. Copyright © 2000-2019 JetBrains s.r.o.
  3. 3. PHP Puzzlers — PHP/Laravel (Sasaya) AmazingTalker CTO http://laravelconf.tw/agenda
  4. 4. — • • 30 • • • • JetBrains
  5. 5. — • PHP 7.3 • •
  6. 6. — go(function () { echo "A[1]n"; go(function () { echo "B[1]n"; Co::sleep(0.1); echo "B[2]n"; }); echo "A[2]n"; Co::sleep(0.2); echo "A[3]n"; }); Event::wait();
  7. 7. — $serv->on('close', function($serv, $fd) { die; }); onclose die tcp
  8. 8. — https://github.com/shengyou/20190811-php-puzzlers
  9. 9. — A B C D
  10. 10. ( …)
  11. 11. PHP (Shengyou Fan) shengyou@jetbrains.com (Albert Chen) albert@handsup.shop —

×