How to get version of PCRE (bundled with PHP) from code?
问题 Is there any way to get version (and date of release) of PCRE bundled with PHP from PHP code and store it into variable? I can found it using phpinfo() but can't find any other way to get that value directly from code. I was trying to find solution last couple of hours but it's hopeless. So far, I can get complete phpinfo() output in variable and pull out PCRE version/release date from there but I'm wondering is there easier solution? 回答1: I think the ReflectionExtension class is made for