GoLang get_declared_traits

request it (261)
GoLang replacement for PHP's get_declared_traits [edit | history]

Do you know a GoLang replacement for PHP's get_declared_traits? Write it!

PHP get_declared_traits

PHP original manual for get_declared_traits [ show | php.net ]


(PHP 5 >= 5.4.0, PHP 7)

get_declared_traitsReturns an array of all declared traits


array get_declared_traits ( void )


This function has no parameters.

Return Values

Returns an array with names of all declared traits in values. Returns NULL in case of a failure.

See Also