<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.locale.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'locale.isrighttoleft.php',
    1 => 'Locale::isRightToLeft',
    2 => 'ロケールが右から左に書く文字体系を使うかどうかを調べる',
  ),
  'up' => 
  array (
    0 => 'class.locale.php',
    1 => 'Locale',
  ),
  'prev' => 
  array (
    0 => 'locale.getscript.php',
    1 => 'Locale::getScript',
  ),
  'next' => 
  array (
    0 => 'locale.lookup.php',
    1 => 'Locale::lookup',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/intl/locale/isrighttoleft.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="locale.isrighttoleft" class="refentry">

 <div class="refnamediv">
  <h1 class="refname">Locale::isRightToLeft</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">Locale::isRightToLeft</span> &mdash; <span class="dc-title">ロケールが右から左に書く文字体系を使うかどうかを調べる</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-locale.isrighttoleft-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="modifier">static</span>
   <span class="methodname"><strong>Locale::isRightToLeft</strong></span>(<span class="methodparam">
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$locale</code>
    <span class="initializer"> = &quot;&quot;</span>
   </span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>


  <p class="simpara">
   ロケールが右から左に書く文字体系を使うかどうかを調べます。
  </p>

  <p class="simpara">
   このメソッドは ICU ライブラリに依存しており、
   ロケールに関連付けられた主要な文字体系を評価します。
  </p>

  <p class="simpara">
   空文字列が指定された場合、デフォルトのロケールが使用されます。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-locale.isrighttoleft-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">locale</code></dt>
    <dd>
     <span class="simpara">
      ロケール識別子。空の場合はデフォルトのロケールが使用されます。
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-locale.isrighttoleft-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   ロケールが右から左に書く文字体系を使う場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>、
   そうでない場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-locale.isrighttoleft-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.5.0</td>
      <td>
       <span class="methodname"><strong>Locale::isRightToLeft()</strong></span> が追加されました。
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-locale.isrighttoleft-examples">
  <h3 class="title">例</h3>
  <div class="example" id="example-1">
   <p><strong>例1 ロケールのテキスト方向を調べる</strong></p>
   <div class="example-contents">
<div class="cdata"><pre>
var_dump(Locale::isRightToLeft(&#039;en-US&#039;));
var_dump(Locale::isRightToLeft(&#039;ar&#039;));
</pre></div>
   </div>

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


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