Home > PHP > Function > Semaphore > shm_remove_var()

shm_remove_var()

shm_remove_var - Removes a variable from shared memory

Syntax

bool shm_remove_var (resource $shm_identifier, int $variable_key)

Arguments

  • shm_identifier - The shared memory identifier as returned by shm_attach()
  • variable_key - The variable key.

Description

Removes a variable with a given variable_key and frees the occupied memory.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.