PHP 8.4.2 Released!

rpmexpandnumeric

(PECL rpminfo >= 1.2.0)

rpmexpandnumericRetrieve numerical value of a RPM macro

Açıklama

rpmexpandnumeric(string $text): int

Retrieve numerical value of a RPM macro.

Bağımsız Değişkenler

text

Text with RPM macros to expand.

Dönen Değerler

Macro expansion as a int. Boolean values (Y or y returns 1, N or n returns 0) are permitted as well. An undefined macro returns 0.

Örnekler

Örnek 1 A rpmexpandnumeric() example

<?php
$bits
= rpmexpandnumeric("%__isa_bits");
print_r($bits);
?>

Yukarıdaki örneğin çıktısı:

64

Ayrıca Bakınız

add a note

User Contributed Notes

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