note 72778 added to language.pseudo-types

From: Date: Thu, 01 Feb 2007 10:15:29 +0000
Subject: note 72778 added to language.pseudo-types
Groups: php.notes 
Request: Send a blank email to php-notes+get-122471@lists.php.net to get a copy of this message
To recap mr dot lilov at gmail dot com's comment: If you want to pass a function as an argument to another function, for example "array_map", do this: regular functions: <? array_map(intval, $array) ?> static functions in a class: <? array_map(array('MyClass', 'MyFunction'), $array) ?> functions from an object: <? array_map(array($this, 'MyFunction'), $array) ?> I hope this clarifies things a little bit ---- Server IP: 194.109.193.94 Probable Submitter: 82.93.165.208 ---- Manual Page -- http://www.php.net/manual/en/language.pseudo-types.php Edit -- https://master.php.net/note/edit/72778 Del: integrated -- https://master.php.net/note/delete/72778/integrated Del: useless -- https://master.php.net/note/delete/72778/useless Del: bad code -- https://master.php.net/note/delete/72778/bad+code Del: spam -- https://master.php.net/note/delete/72778/spam Del: non-english -- https://master.php.net/note/delete/72778/non-english Del: in docs -- https://master.php.net/note/delete/72778/in+docs Del: other reasons-- https://master.php.net/note/delete/72778 Reject -- https://master.php.net/note/reject/72778 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122471) next »