Home > PHP > Function > Semaphore > shm_remove()

shm_remove()

shm_remove - Removes shared memory from Unix systems

Syntax

bool shm_remove (resource $shm_identifier)

Arguments

  • shm_identifier - The shared memory identifier as returned by shm_attach()

Description

shm_remove() removes the shared memory shm_identifier. All data will be destroyed.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.