AlanZhang
V2EX  ›  问与答

准备面试一 phper,有木有好的建议?

  •  
  •   AlanZhang · Jun 9, 2014 · 4396 views
    This topic created in 4367 days ago, the information mentioned may be changed or developed.
    13 replies    2014-06-10 05:56:50 +08:00
    kchum
        1
    kchum  
       Jun 9, 2014 via iPhone
    没有建议,我是被面的…哈哈
    yakczh
        2
    yakczh  
       Jun 9, 2014
    做题

    $num=rand();
    $num/=100;

    print $num;
    $arr=array('1-100','100-300','400-500');

    判断$num落在哪个区间里
    582033
        3
    582033  
       Jun 9, 2014
    面试题五花八门,楼主放平心态面就是了。
    anewg
        4
    anewg  
       Jun 9, 2014
    doushishabi
        5
    doushishabi  
       Jun 9, 2014
    说实话,只要吃苦的精神,现有技术都是次要的。像大家做的这些WEB编程又不是造原子弹,不用太计较技术细节了。给有冲劲的年轻一个机会也是给自己的机会。就算是从0开始。
    qq41730589
        6
    qq41730589  
       Jun 9, 2014
    求PHP实习
    hellov22ex
        7
    hellov22ex  
       Jun 9, 2014
    额,身为一个没当上PHP程序猿的渣渣路过,你要想办法知道,来应聘的是要当码农,还是当程序员。
    caonan
        8
    caonan  
       Jun 9, 2014
    「PHP 为什么是最好的语言?」
    ninewan
        9
    ninewan  
       Jun 9, 2014
    @yakczh 答案为0<=$num<=327.68
    AlanZhang
        10
    AlanZhang  
    OP
       Jun 9, 2014
    之前面试过一个,不知道composer。直接打负分。
    raincious
        11
    raincious  
       Jun 9, 2014
    @ninewan

    http://cn2.php.net/manual/en/function.rand.php

    Note: On some platforms (such as Windows), getrandmax() is only 32767.

    要考虑“On other platforms”的情况。答案是0 <= $num <= (getrandmax() / 100)

    但我觉得 @yakczh 的意思是写个程序,将结果放在$arr那个数组里然后做统计?
    tangzx
        12
    tangzx  
       Jun 10, 2014 via iPhone
    噗,楼主明明说的是面别人不是去面职位,怎么楼上这么多不认真阅读的熊孩子
    kfll
        13
    kfll  
       Jun 10, 2014 via Android
    @tangzx 冒昧说一句……好像除了3L(不知道其意思)…其余人都在点上吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5554 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 65ms · UTC 05:53 · PVG 13:53 · LAX 22:53 · JFK 01:53
    ♥ Do have faith in what you're doing.