note 28315 added to functions.arguments

From: Date: Thu, 09 Jan 2003 03:47:23 +0000
Subject: note 28315 added to functions.arguments
Groups: php.notes 
Request: Send a blank email to php-notes+get-41879@lists.php.net to get a copy of this message
function a($x, $y) { print($x . ' ' . $y); } a(2.0, 2.1); produces 2 2.1 instead of 2.0 2.1 I tried getting the arguements with get_func_arg() and type casting and a few other things but all produced 2 instead of 2.0. When you need 2.0 as 2.0, you have to specify a('2.0', 2.1); -- http://www.php.net/manual/en/functions.arguments.php http://master.php.net/manage/user-notes.php?action=edit+28315 http://master.php.net/manage/user-notes.php?action=delete+28315 http://master.php.net/manage/user-notes.php?action=reject+28315

« previous php.notes (#41879) next »