note 93011 modified in function.assert-options by danbrown

From: Date: Wed, 19 Aug 2009 15:35:01 +0000
Subject: note 93011 modified in function.assert-options by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159637@lists.php.net to get a copy of this message
If you want your callback function be a method of a class. You can pass an array. First is the class name, second is the method name <?php $newcb = array("Contentcheck","sz_failureLine"); assert_options(ASSERT_CALLBACK, $newcb); ?> --was-- If you want your callback function be a method of a class. You can pass an array. First is the class name, second is the method name $newcb = array("Contentcheck","sz_failureLine"); assert_options(ASSERT_CALLBACK, $newcb); http://php.net/manual/en/function.assert-options.php

« previous php.notes (#159637) next »