Data::constants

Posted on November 24, 2016

Get all defined constants

Example usage

define('SOME_CONSTANT', 'some constant value');

var_dump(Data::constants());

array(103) {

  ...

  ["SOME_CONSTANT"]=>
  string(19) "some constant value"

  ...

}

Return Value

array all defined constants

1 Comments

  • Bobcat
    Bobcat
    January 3, 2017 at 11:39 am
    Good job mankig it appear easy.
    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *