shm_detach

bool shm_detach(int shm_id) 

Detaches from a shared memory segment.

Returns:

TRUE on success; FALSE on failure

Description:

shm_detach() detaches from the shared memory segment identified by shm_id . shm_id must be a valid identifier as returned by shm_attach().

Version:

PHP 3 since 3.0.6, PHP 4

See also:

shm_attach() 
shm_get_var() 
shm_put_var() 
shm_remove() 
shm_remove_var() 

Example:

Detach from a shared memory segment
shm_detach($shm_id); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.