Using array_push in method in php

前端 未结 5 1736
抹茶落季
抹茶落季 2021-01-22 05:38

The addRecipients use push_array but it does not work. What am I doing wrong here??

In class.emailer.php

class Emailer
{
public $sender;
public $recipien         


        
5条回答
  •  借酒劲吻你
    2021-01-22 06:32

    in file "class.emailer.php" just do

    public $recipients = array();
    

    instead of just the kinda naked

    public $recipients;
    

    That's all, and as a sur-plus, you're free to fill up your constructors as you desire. - What do you think about that?

    Regards, M.

提交回复
热议问题