<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.misc.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.sapi-windows-cp-get.php',
    1 => 'sapi_windows_cp_get',
    2 => '現在のコードページを取得する',
  ),
  'up' => 
  array (
    0 => 'ref.misc.php',
    1 => 'その他の関数',
  ),
  'prev' => 
  array (
    0 => 'function.sapi-windows-cp-conv.php',
    1 => 'sapi_windows_cp_conv',
  ),
  'next' => 
  array (
    0 => 'function.sapi-windows-cp-is-utf8.php',
    1 => 'sapi_windows_cp_is_utf8',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/misc/functions/sapi-windows-cp-get.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.sapi-windows-cp-get" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">sapi_windows_cp_get</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.1.0, PHP 8)</p><p class="refpurpose"><span class="refname">sapi_windows_cp_get</span> &mdash; <span class="dc-title">現在のコードページを取得する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.sapi-windows-cp-get-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>sapi_windows_cp_get</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$kind</code><span class="initializer"> = &quot;&quot;</span></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   現在のコードページを取得します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.sapi-windows-cp-get-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">kind</code></dt>
    <dd>
     <p class="para">
      取得するオペレーティングシステムのコードページ: <code class="literal">&#039;ansi&#039;</code> または <code class="literal">&#039;oem&#039;</code>
      それ以外の値は、現在のプロセスのコードページを参照します。
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sapi-windows-cp-get-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   コードページの識別子を返します。
   <code class="parameter">kind</code> が <code class="literal">&#039;ansi&#039;</code> の場合、
   オペレーティングシステムの、現在の <abbr>ANSI</abbr>  コードページを返します。
   <code class="parameter">kind</code> が <code class="literal">&#039;oem&#039;</code> の場合、
   オペレーティングシステムの、現在の <abbr>OEM</abbr>  コードページを返します。
   それ以外の場合、現在のプロセスのコードページを返します。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.sapi-windows-cp-get-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.sapi-windows-cp-set.php" class="function" rel="rdfs-seeAlso">sapi_windows_cp_set()</a> - 現在のプロセスのコードページを設定する</span></li>
  </ul>
 </div>


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