Extend Class with Final Constructor on PHP

后端 未结 6 967
栀梦
栀梦 2021-01-06 02:43

I want extend class which have final constructor (in my case it\'s SimpleXMLElement), but i have problems because when i use:

    class myclass extends Simpl         


        
6条回答
  •  囚心锁ツ
    2021-01-06 03:19

    I know this is an old post but I had a similar problem just now. I was actually including the same class file twice. Use include_once() or require_once() instead of include() or require().

提交回复
热议问题