<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/com.examples.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'com.examples.arrays.php',
    1 => 'Arrays and Array-style COM properties',
    2 => 'Arrays and Array-style COM properties',
  ),
  'up' => 
  array (
    0 => 'com.examples.php',
    1 => 'Examples',
  ),
  'prev' => 
  array (
    0 => 'com.examples.foreach.php',
    1 => 'For Each',
  ),
  'next' => 
  array (
    0 => 'class.com.php',
    1 => 'com',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/com/examples.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="com.examples.arrays" class="section">
  <h2 class="title">Arrays and Array-style COM properties</h2>
  <p class="para">
   Many COM objects expose their properties as arrays, or using array-style
   access.
  </p>
  <p class="para">
   You can:
   <ul class="itemizedlist">
    <li class="listitem">
     <p class="para">
      Access multi-dimensional arrays, or COM properties that require
      multiple parameters using PHP array syntax.  You can also write or set
      properties using this technique.
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      Iterate SafeArrays (&quot;true&quot; arrays) using the <a href="control-structures.foreach.php" class="link"><code class="literal">foreach</code></a> control structure.  
      This works because SafeArrays include information about their size.  If an
      array-style property implements IEnumVariant then you can also use
      foreach for that property too; take a look at <a href="com.examples.foreach.php" class="xref">For Each</a> for more information on this topic.
     </p>
    </li>
   </ul>
  </p>
 </div><?php manual_footer($setup); ?>