rpmexpand

(PECL rpminfo >= 1.2.0)

rpmexpandRetrieve expanded value of a RPM macro

Descrizione

rpmexpand(string $text): string

Retrieve expanded value of a RPM macro.

Elenco dei parametri

text
Text with RPM macros to expand.

Valori restituiti

A string with concatenated macro expansions.

Esempi

Example #1 A rpmexpand() example

<?php
$distro
= rpmexpand("%{?fedora:Fedora %{fedora}}%{?rhel:Enterprise Linux %{rhel}}");
print_r($distro);
?>

Il precedente esempio visualizzerà:

Fedora 41

Vedere anche:

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top