<?php
// Como pegar comentários em funções
/**
* Bebe refrigerante
*
*/
function beber()
{
return "Refrigerante";
}
$reflection = new ReflectionFunction('beber');
$reflection->getDocComment()
);
PD9waHAKCi8vIENvbW8gcGVnYXIgY29tZW50w6FyaW9zIGVtIGZ1bsOnw7VlcwoKLyoqCiAqIEJlYmUgcmVmcmlnZXJhbnRlCiAqIAogKi8KIApmdW5jdGlvbiBiZWJlcigpCnsKCXJldHVybiAiUmVmcmlnZXJhbnRlIjsKfQoKCiRyZWZsZWN0aW9uID0gbmV3IFJlZmxlY3Rpb25GdW5jdGlvbignYmViZXInKTsKCgp2YXJfZHVtcCgKICAgICRyZWZsZWN0aW9uLT5nZXREb2NDb21tZW50KCkJCik7