From 8be919b4c1df4fe2e63a503a86cdf3330e962b79 Mon Sep 17 00:00:00 2001 From: pgerzson Date: Fri, 14 Dec 2001 01:00:27 +0000 Subject: [PATCH] correct the array_keys() implementation for PHP 3 example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64967 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/array.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/array.xml b/functions/array.xml index 1c9007a4c0..277e98a7d4 100644 --- a/functions/array.xml +++ b/functions/array.xml @@ -1,5 +1,5 @@ - + Array Functions Arrays @@ -703,10 +703,10 @@ function array_keys ($arr, $term="") { while (list($k,$v) = each($arr)) { if ($term && $v != $term) { continue; - $t[] = $k; - } - return $t; - } + } + $t[] = $k; + } + return $t; } ]]>