summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/sizeof_variation2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/array/sizeof_variation2.phpt')
-rw-r--r--ext/standard/tests/array/sizeof_variation2.phpt14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/tests/array/sizeof_variation2.phpt b/ext/standard/tests/array/sizeof_variation2.phpt
index a224579780..ba31157ff1 100644
--- a/ext/standard/tests/array/sizeof_variation2.phpt
+++ b/ext/standard/tests/array/sizeof_variation2.phpt
@@ -3,7 +3,7 @@ Test sizeof() function : usage variations - different array values for 'var' arg
--FILE--
<?php
/* Prototype : int sizeof($mixed var[, int $mode])
- * Description: Counts an elements in an array. If Standard PHP library is installed,
+ * Description: Counts an elements in an array. If Standard PHP library is installed,
* it will return the properties of an object.
* Source code: ext/standard/basic_functions.c
* Alias to functions: count()
@@ -16,7 +16,7 @@ $fp = fopen(__FILE__, "r");
echo "--- Testing sizeof() with different array values for 'var' argument ---\n";
-// array containing different types of array values for 'var' argument
+// array containing different types of array values for 'var' argument
$values = array (
/* 1 */ array($fp, "resource" => $fp),
array(1, array(3, 4, array(6, array(8)))),
@@ -32,9 +32,9 @@ $values = array (
array(false => 'red', true => 'pen' ),
array('color' => "red", "item" => 'pen', 1 => "Hi", "" => "Hello" ),
/* 14 */ array($fp, "resource1" => $fp, 'resource2' => $fp, array( $fp, 'type' => $fp) )
-);
+);
-// loop through each element of the values array for 'var' argument
+// loop through each element of the values array for 'var' argument
// check the working of sizeof()
$counter = 1;
for($i = 0; $i < count($values); $i++)
@@ -42,10 +42,10 @@ for($i = 0; $i < count($values); $i++)
echo "-- Iteration $counter --\n";
$var = $values[$i];
- echo "Default Mode: ";
+ echo "Default Mode: ";
var_dump( sizeof($var) );
echo "\n";
-
+
echo "COUNT_NORMAL Mode: ";
var_dump( sizeof($var, COUNT_NORMAL) );
echo "\n";
@@ -56,7 +56,7 @@ for($i = 0; $i < count($values); $i++)
$counter++;
}
-
+
echo "Done";
?>
--EXPECTF--