note 78691 deleted from function.array-filter by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 08:00:52 +0000 |
| Subject: | note 78691 deleted from function.array-filter by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196722@lists.php.net to get a copy of this message | ||
Note Submitter: nospam at jcornelius dot com
----
Don't forget that using callbacks in a class requires that you reference the object name in the
callback like so:
<?php
$newArray = array_filter($array, array($this,"callback_function"));
?>
Where "$this" is the reference to your object.