note 19058 deleted from function.call-user-func-array by aidan

From: Date: Thu, 17 Jun 2004 00:35:12 +0000
Subject: note 19058 deleted from function.call-user-func-array by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71174@lists.php.net to get a copy of this message
Note Submitter: graham.NO_SPAM@rbd-concepts.NOSPAM.co.uk ---- in case you want to use call_user_func_array for a 0 length array you should change the part to strip off the last comma, from: $funcCall = substr($funcCall, 0, -1); to: if (sizeof($ar)>0) { // Strip off last comma ',' $funcCall = substr($funcCall, 0, -1); }

« previous php.notes (#71174) next »