note 88756 deleted from function.func-get-args by thiago

From: Date: Fri, 06 Feb 2009 15:08:52 +0000
Subject: note 88756 deleted from function.func-get-args by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150305@lists.php.net to get a copy of this message
Note Submitter: dead dot screamer at seznam dot cz ---- Reply to Andrey: Isn't better use <?php call_User_Func_Array()?> instead of <?php eval()?>? exmaple: <?php function put2log($msg /*, ...*/) { $args=func_Get_Args(); $msg=call_User_Func_Array('sprintf',$args); write_to_my_log($msg); } put2log('Error %u occured, try use %s.', 123, 'your head'); ?>

« previous php.notes (#150305) next »