PHP.nl

rpmexpandnumeric

rpmexpandnumeric

Retrieve numerical value of a RPM macro

int **rpmexpandnumeric** string $text

Retrieve numerical value of a RPM macro.

textText with RPM macros to expand.

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

Voorbeeld: A example

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

rpmexpand