Function ereg() is deprecated

后端 未结 3 418
遇见更好的自我
遇见更好的自我 2020-12-19 06:34

I have started to learn PHP. So installed WAMP server on my windows 7 machine. I am trying the following PHP code :



        
3条回答
  •  -上瘾入骨i
    2020-12-19 07:27

    "Deprecated" means that PHP 5.3.0 no longer supports that function.

    You should treat ereg() as not existing anymore.

    The function does still exist, but only to support existing applications where it's been used.

    When writing new code, never use a deprecated function.

    Instead, consider the preg_match function.

提交回复
热议问题