rpmexpand
(PECL rpminfo >= 1.2.0)
rpmexpand — Retrieve expanded value of a RPM macro
パラメータ
text
-
Text with RPM macros to expand.
戻り値
A string with concatenated macro expansion(s).
例
例1 A rpmexpand() example
<?php
$distro = rpmexpand("%{?fedora:Fedora %{fedora}}%{?rhel:Enterprise Linux %{rhel}}");
print_r($distro);
?>
上の例の出力は以下となります。
Fedora 41
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google