search

Home  >  Q&A  >  body text

Why is there no error reported in var_dump($meiyou)?

When I run my own code, I keep getting errors:

Notice: Undefined variable: meiyou in E:\work\study\PHP\phpstudy\www\127.0.0.2\phpstu_1.php on line 3

Then a NULL will be printed, but it is correct in the example. Why is this?

呵呵呵呵呵呵2630 days ago1567

reply all(4)I'll reply

  • phpcn_u68656

    phpcn_u686562017-12-05 13:43:46

    This is not an error. . Just a reminder that this variable is not declared. . . You can enter a piece of code in front to cancel the reminder

    reply
    0
  • 钟晓峰

    钟晓峰2017-09-20 23:37:16

    Looking at your error report, there is no $ in front of the variable name

    reply
    0
  • 我是吃货

    我是吃货2017-09-20 17:07:03

    Notice: Undefined variable: meiyou

    The variable is undefined

    reply
    0
  • 呵呵呵

    But in the case, no error is reported when I write this. I want to know why.

    呵呵呵 · 2017-09-21 08:49:43
  • 本Q已中毒

    本Q已中毒2017-09-20 16:54:42

    The path is wrong

    reply
    0
  • Cancelreply