search
HomeBackend DevelopmentPHP Tutorial【赚取智能手环】PHP开发学习门户有奖答题活动火热进行中!

为感谢大家一直以来对于 PHP开发学习门户的关注和支持,特此举办一个有奖答题活动,凡参与活动的竞猜用户,按答题正确数目,提交答案时间进行排名, 前 30 名活动排名用户将获得我们精心准备的礼物奖品,赶快参加吧!


活动时间:2014.11.23 10:00  至  2014.11.25 20:00


活动地址: http://bbs.phpthinking.com/thread-305-1-1.html


活动奖品:

  • 第1名,智能手环+U型枕+耳机收纳盒
  • 第2名,智能手环+耳机收纳盒
  • 第3-5名,U型枕+耳机收纳盒
  • 第6-30名,U型枕

  • 活动规则:

       1. 分享活动,为了让更多的人参与我们的大家庭,将下列分享内容发布分享至QQ 空间、微信朋友圈、新浪微博、腾讯微博、人人网等任意一处即可,保留分享后的展示截图。
    分享内容如下:

    【赚取智能手环】 PHP 开发学习门户有奖答题第一期活动开始了,旨在检验大家的专业知识和对PHP 开发学习门户的了解程度,奖品多多,智能手环、U 型枕等你来拿,感谢云智慧提供奖品赞助,活动地址是: http://bbs.phpthinking.com/thread-305-1-1.html

       2. 回答活动的12 个题目,为保证用户答案的私密性,用户需将题目答案发至邮箱 mythinkingonline@gmail.com,同时邮件中,需包含答题人姓名,联系邮箱,手机号,奖品邮寄地址,第一步中活动分享的截图

       3. 邮件发送之后,在本贴留言签到,任意留言内容+ 个人邮箱地址即可,看到帖子留言后,我们会在指定邮箱查找您的邮件,首先根据答对题目的个数进行排名,其次根据邮件发送时间进行再次排名,最终确定获奖用户!

       4. 10 个活动题目会在2014.11.23 10:00 在本文中公布,中奖名单会在活动结束后两天之内陆续公布,请大家耐心等待

    活动题目如下:


  • 【单选】PHP开发学习社区门户正式对外发布时间?

    A.2014年7月

    B.2014年8月

    C.2014年9月

    D.2014年10月


  • 【多选】PHP中单引号和双引号包围的字符串有什么区别

    A. 单引号速度快,双引号速度慢

    B. 双引号速度快,单引号速度慢

    C. 两者没有速度差别

    D. 双引号解析其中以$开头的变量,而单引号不解析


  • 【单选】以下哪个不符合PHP语法

    A. $_10

    B. ${"MyVar"}

    C. &$something

    D. $10_somethings

    E. $aVaR


  • 【多选】 关于下列的语句及描述正确的是

    A. $method = “test”; $method(); 这两个语句执行后将执行一个名为test的方法

    B. $method = “test”; echo “This is a $method”;这个语句执行后将输出 This is a test

    C. $method = “test”; $$method = “a”; 则变量 $test 的值为 a


  • 【单选】session 和cookie 的区别说法错误的是?

    A. session 和 cookie 都可以记录数据状态。

    B. 在设置session 和cookie 之前不能有输出。

    C. 在使用cookie 前要使用 cookie_start()函数初始。

    D. Cookie是客户端技术,session是服务器端技术。


  • 【单选】$a=3;$b=4;if($a||$b=5){echo'todo';} $b的值是

    A. 4

    B. 5

    C. 3

    D. false


  • 【单选】user表中对字段name(varchar类型)创建了普通索引,下列查询语句可以使用索引是?

    A. SELECT * FROM users where name not in ('a','b');

    B. SELECT * FROM users where name like '%a%';

    C. SELECT * FROM users where name between 'a' and 'b';

    D. SELECT * FROM users where name = age;


  • 【单选】存在用户表user,若只有name和password两个字段,在php中定义两个变量

    $name_str = 'phpthinking';$password_str = 'phpthinking.com';

    则下列在php中拼装的sql语句语法错误的是

    A.$sql = "insert into users (name,password) values ('{$name_str}','{$password_str}')"; 
    B.$sql = 'insert into users (name,password) values ("' . $name_str . '","' . $password_str . '")'; 
    C.$sql = "insert into users (name,password) values (" . $name_str . "," . $password_str . ")"; 
    D.$sql = "insert into users (name,password) values ('" . $name_str . "','" . $password_str . "')";


  • 【单选】监控宝是什么 ?

    A.一款支付监控软件        B.一个IT监控的服务应用


  • 【单选】监控宝有哪些版本

    A.免费        B.标准版        C.高级版        D.专业版        E.企业服务        F以上都有


  • 您在监控宝注册的账户邮箱是什么?

    若没有账号的话,请前往注册: http://www.jiankongbao.com/signup?ref=phpthinking


  • 写出方法1和方法2的实现代码是什么?

    1. class Person {
    2.     //下面是人的成员属性, 都是封装的私有成员
    3.     private $name; //人的名子
    4.     private $sex; //人的性别
    5.     private $age; //人的年龄

    6.     // 方法1
    7.     // 方法2
    8. }

    9. $p1 = new Person ();

    10. //直接为私有属性赋值的操作,会自动调用方法1方法进行赋值
    11. $p1->name = "张三";

    12. //直接获取私有属性的值, 会自动调用方法2方法,返回成员属性的值
    13. echo "姓名:" . $p1->name . "
      ";
    复制代码
  • 【附加题】你对PHP开发学习门户门户的建议是什么?


    上述题目基本在PHP开发学习门户的博文中都可以找到答案,大家尽快发邮件答题吧,O(∩_∩)O~


    赞助商:

    PHP 开发学习门户         http://www.phpthinking.com

    云智慧科技有限公司         http://www.cloudwise.com


    奖品图片:

    Statement
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    PHP Dependency Injection Container: A Quick StartPHP Dependency Injection Container: A Quick StartMay 13, 2025 am 12:11 AM

    APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

    Dependency Injection vs. Service Locator in PHPDependency Injection vs. Service Locator in PHPMay 13, 2025 am 12:10 AM

    Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

    PHP performance optimization strategies.PHP performance optimization strategies.May 13, 2025 am 12:06 AM

    PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

    PHP Email Validation: Ensuring Emails Are Sent CorrectlyPHP Email Validation: Ensuring Emails Are Sent CorrectlyMay 13, 2025 am 12:06 AM

    PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

    How to make PHP applications fasterHow to make PHP applications fasterMay 12, 2025 am 12:12 AM

    TomakePHPapplicationsfaster,followthesesteps:1)UseOpcodeCachinglikeOPcachetostoreprecompiledscriptbytecode.2)MinimizeDatabaseQueriesbyusingquerycachingandefficientindexing.3)LeveragePHP7 Featuresforbettercodeefficiency.4)ImplementCachingStrategiessuc

    PHP Performance Optimization Checklist: Improve Speed NowPHP Performance Optimization Checklist: Improve Speed NowMay 12, 2025 am 12:07 AM

    ToimprovePHPapplicationspeed,followthesesteps:1)EnableopcodecachingwithAPCutoreducescriptexecutiontime.2)ImplementdatabasequerycachingusingPDOtominimizedatabasehits.3)UseHTTP/2tomultiplexrequestsandreduceconnectionoverhead.4)Limitsessionusagebyclosin

    PHP Dependency Injection: Improve Code TestabilityPHP Dependency Injection: Improve Code TestabilityMay 12, 2025 am 12:03 AM

    Dependency injection (DI) significantly improves the testability of PHP code by explicitly transitive dependencies. 1) DI decoupling classes and specific implementations make testing and maintenance more flexible. 2) Among the three types, the constructor injects explicit expression dependencies to keep the state consistent. 3) Use DI containers to manage complex dependencies to improve code quality and development efficiency.

    PHP Performance Optimization: Database Query OptimizationPHP Performance Optimization: Database Query OptimizationMay 12, 2025 am 12:02 AM

    DatabasequeryoptimizationinPHPinvolvesseveralstrategiestoenhanceperformance.1)Selectonlynecessarycolumnstoreducedatatransfer.2)Useindexingtospeedupdataretrieval.3)Implementquerycachingtostoreresultsoffrequentqueries.4)Utilizepreparedstatementsforeffi

    See all articles

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    Video Face Swap

    Video Face Swap

    Swap faces in any video effortlessly with our completely free AI face swap tool!

    Hot Article

    Hot Tools

    Dreamweaver Mac version

    Dreamweaver Mac version

    Visual web development tools

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)

    EditPlus Chinese cracked version

    EditPlus Chinese cracked version

    Small size, syntax highlighting, does not support code prompt function

    MinGW - Minimalist GNU for Windows

    MinGW - Minimalist GNU for Windows

    This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

    SecLists

    SecLists

    SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.