$div = ''; $attrs = getAttrs($div); print_r($attrs);
Array ( [id] => myDiv [class] => myClass [style] => color:red; )
$a = 'Google'; $attrs = getAttrs($a); print_r($attrs);
Array ( [href] => https://www.google.com [target] => _blank )The `getAttrs` function is a built-in function in PHP, and it doesn't belong to any specific package or library.