php8.5
Home/ Manual/ apcu / functions/ apcu_sma_info

apcu_sma_info

PHP function Edit on GitHub ✎

(PECL apcu >= 4.0.0)

Retrieves APCu Shared Memory Allocation information

Description

apcu_sma_info(bool $limited = false): array|false

Retrieves APCu Shared Memory Allocation information.

Parameters

limited

When set to false (default) apcu_sma_info() will return a detailed information about each segment.

Return Values

Array of Shared Memory Allocation data; false on failure.

Examples

A apcu_sma_info() example

php
<?php
print_r(apcu_sma_info());
?>

The above example will output something similar to:

output
Array
(
    [num_seg] => 1
    [seg_size] => 31457280
    [avail_mem] => 31448408
    [block_lists] => Array
        (
            [0] => Array
                (
                    [0] => Array
                        (
                            [size] => 31448408
                            [offset] => 8864
                        )

                )

        )

)

See Also

Source: reference/apcu/functions/apcu-sma-info.xml · from the official PHP manual (php/doc-en)