<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.resourcebundle.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'resourcebundle.get.php',
    1 => 'ResourceBundle::get',
    2 => 'Get data from the bundle',
  ),
  'up' => 
  array (
    0 => 'class.resourcebundle.php',
    1 => 'ResourceBundle',
  ),
  'prev' => 
  array (
    0 => 'resourcebundle.create.php',
    1 => 'ResourceBundle::create',
  ),
  'next' => 
  array (
    0 => 'resourcebundle.geterrorcode.php',
    1 => 'ResourceBundle::getErrorCode',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/resourcebundle/get.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="resourcebundle.get" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ResourceBundle::get</h1>
  <h1 class="refname">resourcebundle_get</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.2, PHP 7, PHP 8, PECL intl &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">ResourceBundle::get</span> -- <span class="refname">resourcebundle_get</span> &mdash; <span class="dc-title">Get data from the bundle</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-resourcebundle.get-description">
  <h3 class="title">Açıklama</h3>
  <p class="para">
   Nesne yönelimli kullanım
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ResourceBundle::get</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span> <code class="parameter">$index</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$fallback</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>): <span class="type"><span class="type"><a href="class.resourcebundle.php" class="type ResourceBundle">ResourceBundle</a></span>|<span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span></div>

  <p class="para rdfs-comment">
   Yordamsal kullanım
  </p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>resourcebundle_get</strong></span>(<span class="methodparam"><span class="type"><a href="class.resourcebundle.php" class="type ResourceBundle">ResourceBundle</a></span> <code class="parameter">$bundle</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span> <code class="parameter">$index</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$fallback</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>): <span class="type"><span class="type"><a href="class.resourcebundle.php" class="type ResourceBundle">ResourceBundle</a></span>|<span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span></div>

  <p class="para rdfs-comment">
   Get the data from the bundle by index or string key.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-resourcebundle.get-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">bundle</code></dt>
     <dd>
      <p class="para">
       <span class="classname"><a href="class.resourcebundle.php" class="classname">ResourceBundle</a></span> object.
      </p>
     </dd>
    
    
     <dt><code class="parameter">index</code></dt>
     <dd>
      <p class="para">
       Data index, must be string or integer.
      </p>
     </dd>
    
    
     <dt><code class="parameter">fallback</code></dt>
     <dd>
      <p class="para">
       Whether locale should match exactly or fallback to parent locale is allowed.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-resourcebundle.get-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Returns the data located at the index or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> on error. Strings, integers and binary data strings
   are returned as corresponding PHP types, integer array is returned as PHP array. Complex types are
   returned as <span class="classname"><a href="class.resourcebundle.php" class="classname">ResourceBundle</a></span> object.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-resourcebundle.get-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <p class="simpara">
   A <span class="exceptionname"><a href="class.typeerror.php" class="exceptionname">TypeError</a></span> is thrown if
   the offset type is invalid.
  </p>
  <p class="simpara">
   A <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> is thrown if
   if <code class="parameter">index</code> is a <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   and is empty or is a <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> and does not
   fit into a 32 bit integer type.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-resourcebundle.get-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.4.0</td>
      <td>
       <span class="simpara">
        A <span class="exceptionname"><a href="class.typeerror.php" class="exceptionname">TypeError</a></span> is thrown if
        the offset type is invalid.
        A <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> is thrown if
        if <code class="parameter">index</code> is a <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
        and is empty or is a <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> and does not
        fit into a 32 bit integer type.
       </span>
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-resourcebundle.get-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="function"><strong>resourcebundle_get()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$r </span><span style="color: #007700">= </span><span style="color: #0000BB">resourcebundle_create</span><span style="color: #007700">( </span><span style="color: #DD0000">'es'</span><span style="color: #007700">, </span><span style="color: #DD0000">"/usr/share/data/myapp"</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">resourcebundle_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$r</span><span style="color: #007700">, </span><span style="color: #DD0000">'somestring'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
  <div class="example" id="example-2">
   <p><strong>Örnek 2 OO example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$r </span><span style="color: #007700">= new </span><span style="color: #0000BB">ResourceBundle</span><span style="color: #007700">( </span><span style="color: #DD0000">'es'</span><span style="color: #007700">, </span><span style="color: #DD0000">"/usr/share/data/myapp"</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$r</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #DD0000">'somestring'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  <div class="example-contents"><p>
Yukarıdaki örneğin çıktısı:</p></div>
  <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">?Hola, mundo!</pre>
</div>
  </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-resourcebundle.get-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="resourcebundle.count.php" class="function" rel="rdfs-seeAlso">resourcebundle_count()</a> - Get number of elements in the bundle</span></li>
   </ul>
  </p>
 </div>

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