PHP - get_declared_classes
Войти

PHP - get_declared_classes

PHP - get_declared_classes

get_declared_classes() - Возвращает массив с именами объявленных классов

1
2
3
4
5
<?php 

    print_r
(get_declared_classes());

?>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php 

   
class Car
   
{

   }
    
   function 
debug($arr){

     echo 
"<div style='overflow:scroll;z-index:5000;position:fixed;padding-left:10px;top:80px;left:100px;width:500px;height:700px;background:deepskyblue'><pre>";
      
print_r($arr);
      echo 
"</pre></div>";
   }

   
debug(get_declared_classes());

?>


Ссылки по теме:

  1. php.net/manual/ru/function.get-declared-classes.php
Теги:
php