PHPのお勉強!

PHP TOP

rpmexpand

(PECL rpminfo >= 1.2.0)

rpmexpandRetrieve expanded value of a RPM macro

説明

rpmexpand(string $text): string

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.
To Top