rpmexpandnumeric

(PECL rpminfo >= 1.2.0)

rpmexpandnumericRetrieve numerical value of a RPM macro

Описание

rpmexpandnumeric(string $text): int

Retrieve numerical value of a RPM macro.

Список параметров

text

Text with RPM macros to expand.

Возвращаемые значения

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.

Примеры

Пример #1 A rpmexpandnumeric() example

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

Результат выполнения приведённого примера:

64

Смотрите также