Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<rpmexpandrpmgetsymlink>
^RpmInfo FunctionsLast updated: Mon, 26 Oct 2026

rpmexpandnumeric

(PECL rpminfo >= 1.2.0)

rpmexpandnumeric — Retrieve numerical value of a RPM macro

Description

function rpmexpandnumeric(string $text): int

Retrieve numerical value of a RPM macro.

Parameters

text

Text with RPM macros to expand.

Return Values

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.

Examples

Example #1 A rpmexpandnumeric() example

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

The above example will output:

64

See Also


<rpmexpandrpmgetsymlink>
^RpmInfo FunctionsLast updated: Mon, 26 Oct 2026