Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<WeakMap::offsetExistsWeakMap::offsetSet>
^WeakMapLast updated: Mon, 26 Oct 2026

WeakMap::offsetGet

(PHP 8)

WeakMap::offsetGet — Returns the value pointed to by a certain object

Description

public function WeakMap::offsetGet(object $object): mixed

Returns the value pointed to by a certain object.

Parameters

object

Some object contained as key in the map.

Return Values

Returns the value associated to the object passed as argument.

Errors/Exceptions

Throws an Error on failure.


<WeakMap::offsetExistsWeakMap::offsetSet>
^WeakMapLast updated: Mon, 26 Oct 2026