-2

Only 31 of the 67 array elements are shown in the watchpoints

php-debug elements

Davide Pastore
  • 8,678
  • 10
  • 39
  • 53
tread
  • 10,133
  • 17
  • 95
  • 170

3 Answers3

1

If you are using xdebug with atom, please check the following xdebug settings:

xdebug.var_display_max_depth
xdebug.var_display_max_children
xdebug.var_display_max_data

See also this post: How to get xdebug var_dump to show full object/array

There might also be a limit on the amount of children displayed in atom.

Community
  • 1
  • 1
Seb
  • 1,521
  • 1
  • 12
  • 19
-1

get_class_methods('classname'), Can only get public function

$class = new ReflectionClass($_brand);
$methods = $class->getMethods();
var_dump($methods);
YaHui Jiang
  • 130
  • 6
-1

get_class_methods() is sensitive to the current scope, meaning if you do this:

class brand{
  public    function publicMethod(){}
  private   function privateMethod(){}
  protected function protectedMethod(){}

  static    function getMethods(){
    return get_class_methods(__CLASS__);
  }
}

print_r(brand::getMethods());

You will receive a full list of public, private, protected and static methods.

Xorifelse
  • 7,878
  • 1
  • 27
  • 38