note 81700 deleted from function.call-user-method by cmb
| From: | cmb@php.net | Date: | Sun, 25 Oct 2020 13:15:26 +0000 |
| Subject: | note 81700 deleted from function.call-user-method by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215642@lists.php.net to get a copy of this message | ||
Note Submitter: ravichandran_11 at yahoo dot co dot in
----
<?php
class abc{
function func($argument) {
$argument="It works";
}
}
$obj=new abc;
$argument_to_be_changed="No it doesn't work";
call_user_method("func", $obj, &$argument_to_be_changed);
echo "Result : ".$argument_to_be_changed;
?>
This code is working. But will through some warning message which you can hide by configuring
php.ini