Home > PHP > Function > Semaphore > shm_detach()

shm_detach()

shm_detach - Disconnects from shared memory segment

Syntax

bool shm_detach (resource $shm_identifier)

Arguments

  • shm_identifier - A shared memory resource handle as returned by shm_attach()

Description

shm_detach() disconnects from the shared memory given by the shm_identifier created by shm_attach(). Remember, that shared memory still exist in the Unix system and the data is still present.

Version

PHP 4, 5

Return value

shm_detach() always returns TRUE.