shm_put_var

bool shm_put_var(int shm_id, int variable_key, mixed value) 
shm_id ID of a shared memory segment
variable_key Key number by which to store the variable
value Value to store

Stores a value and its key in shared memory.

Returns:

TRUE on success; FALSE on failure

Description:

shm_put_var() stores the value given by value with the key given by variable_key in the shared memory segment identified by shm_id . variable_key must be an integer or evaluate to an integer. If shm_id is not a valid identifier as returned by shm_attach(), or if there is not enough space left in the shared memory segment, FALSE is returned and the variable is not stored.

Version:

PHP 3 since 3.0.6, PHP 4

See also:

 shm_attach() shm_detach() shm_get_var() ...

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.