Array does not return value using a static method function

Asked

Viewed 28 times

2

In this static function all variables return their respective values, except $funcionario which is an array.

Where am I going wrong?

class Dtb{

    public static $funcionarios =['M','G','N','I'] ;
    public static $atividades='Sistemas';
    public static $temp=12;

}


echo Dtb::$funcionarios;
echo Dtb::$atividades;
echo Dtb::$temp;
  • Now you can vote positive on all posts on the site, including here, except yours, of course.

1 answer

2


  • I forgot about print_r... VLW!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.