search

Home  >  Q&A  >  body text

Why is the actual output content of the tutorial different from what was expected?

Capture.PNGCapture2.PNG

南于南于2684 days ago877

reply all(1)I'll reply

  • 路过

    路过2017-10-23 12:05:45

    The local test is indeed 15, you can try it locally

    <?php

    $x=5;

    $y=10;

    function mytest()

    {

    global $x,$y;

    $y=$x+$y;

    }

    mytest();

    echo $y;


    reply
    0
  • Cancelreply