<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.rpminfo.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.rpmexpand.php',
    1 => 'rpmexpand',
    2 => 'Retrieve expanded value of a RPM macro',
  ),
  'up' => 
  array (
    0 => 'ref.rpminfo.php',
    1 => 'RpmInfo 関数',
  ),
  'prev' => 
  array (
    0 => 'function.rpmdefine.php',
    1 => 'rpmdefine',
  ),
  'next' => 
  array (
    0 => 'function.rpmexpandnumeric.php',
    1 => 'rpmexpandnumeric',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/rpminfo/functions/rpmexpand.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.rpmexpand" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">rpmexpand</h1>
  <p class="verinfo">(PECL rpminfo &gt;= 1.2.0)</p><p class="refpurpose"><span class="refname">rpmexpand</span> &mdash; <span class="dc-title">Retrieve expanded value of a RPM macro</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.rpmexpand-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>rpmexpand</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$text</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="simpara">
   Retrieve expanded value of a RPM macro.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.rpmexpand-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">text</code></dt>
    <dd>
     <span class="simpara">
      Text with RPM macros to expand.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.rpmexpand-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with concatenated macro expansions.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.rpmexpand-examples">
  <h3 class="title">例</h3>
  <div class="example" id="example-1">
   <p><strong>例1 A <span class="function"><strong>rpmexpand()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$distro </span><span style="color: #007700">= </span><span style="color: #0000BB">rpmexpand</span><span style="color: #007700">(</span><span style="color: #DD0000">"%{?fedora:Fedora %{fedora}}%{?rhel:Enterprise Linux %{rhel}}"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$distro</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>上の例の出力は以下となります。</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Fedora 41</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.rpmexpand-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.rpmexpandnumeric.php" class="function" rel="rdfs-seeAlso">rpmexpandnumeric()</a> - Retrieve numerical value of a RPM macro</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>