<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.simdjson.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.simdjson-key-exists.php',
    1 => 'simdjson_key_exists',
    2 => 'Check if the JSON contains the value referred to by a JSON pointer.',
  ),
  'up' => 
  array (
    0 => 'ref.simdjson.php',
    1 => 'Simdjson Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.simdjson-key-count.php',
    1 => 'simdjson_key_count',
  ),
  'next' => 
  array (
    0 => 'function.simdjson-key-value.php',
    1 => 'simdjson_key_value',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/simdjson/functions/simdjson-key-exists.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.simdjson-key-exists" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">simdjson_key_exists</h1>
  <p class="verinfo">(PECL simdjson &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">simdjson_key_exists</span> &mdash; <span class="dc-title">Check if the JSON contains the value referred to by a JSON pointer.</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.simdjson-key-exists-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>simdjson_key_exists</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$json</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$depth</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Count the number of elements of the object/array found at the requested JSON pointer.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.simdjson-key-exists-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">json</code></dt>
    <dd>
     <span class="simpara">
      The <code class="parameter">json</code> <span class="type"><a href="language.types.string.php" class="type string">string</a></span> being queried.
     </span>
    </dd>
   
   
    <dt><code class="parameter">key</code></dt>
    <dd>
     <span class="simpara">
      The JSON pointer <span class="type"><a href="language.types.string.php" class="type string">string</a></span>.
     </span>
    </dd>
   
   
    <dt><code class="parameter">depth</code></dt>
    <dd>
     <span class="simpara">
      Maximum nesting depth of the structure being validated.
      The value must be greater than <code class="literal">0</code>,
      and less than or equal to <code class="literal">2147483647</code>.

      Callers should use reasonably small values,
      because larger depths require more buffer space and will
      increase the recursion depth, unlike the current <span class="function"><a href="function.json-decode.php" class="function">json_decode()</a></span> implementation.
     </span>
    </dd>
   
   
    <dt><code class="parameter">throw_if_uncountable</code></dt>
    <dd>
     <span class="simpara">
      When true, a <span class="classname"><a href="class.simdjsonexception.php" class="classname">SimdJsonException</a></span> will be thrown
      instead of returning 0 when the value the JSON pointer points to
      is neither an object nor an array.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.simdjson-key-exists-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="simpara">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if the JSON pointer is valid and refers to a value found within a valid JSON string.
   Returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if the JSON is valid but does not contain the JSON pointer.
  </p>
 </div>



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