PHP: spl_object_hash - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SQLite spl_classes

Last updated: Sat, 27 Jan 2007

view this page in

# spl_object_hash

(PHP 5 >= 5.2.0)

spl_object_hash -- Return hash id for given object

## Description

string spl_object_hash ( object obj )

This function returns an unique identifier for the object. This id can be used as a hash key for storing objects or for identifying an object.

## Список параметров

`class`

  Any object.

## Возвращаемые значения

Returns string that is unique for each object and is always the same for the same object.

## Примеры

Пример 1. A spl_object_hash() example

`<?php $id = spl_object_hash($object); $storage[$id] = $object; ?>`

add a note User Contributed Notes
spl_object_hash
There are no user contributed notes for this page.
SQLite spl_classes

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST