SplFixedArray::getSize

Gets the size of the array

&reftitle.description; public `int` `SplFixedArray::getSize`

Gets the size of the array.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Returns the size of the array, as an `int`.

&reftitle.examples;

### `SplFixedArray::getSize` example

    <?php
    $array = new SplFixedArray(5);
    echo $array->getSize()."\n";
    $array->setSize(10);
    echo $array->getSize()."\n";
    ?>

&example.outputs;

    5
    10

&reftitle.notes;

This method is functionally equivalent to `SplFixedArray::count`

&reftitle.seealso;

- `SplFixedArray::count`