summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/is_scalar.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/general_functions/is_scalar.phpt')
-rw-r--r--ext/standard/tests/general_functions/is_scalar.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/standard/tests/general_functions/is_scalar.phpt b/ext/standard/tests/general_functions/is_scalar.phpt
index a7adf6d8e5..53620178c4 100644
--- a/ext/standard/tests/general_functions/is_scalar.phpt
+++ b/ext/standard/tests/general_functions/is_scalar.phpt
@@ -13,7 +13,7 @@ $scalar_variables = array(
-45678,
0x5FF, // hexadecimal as integer
0X566,
- -0xAAF,
+ -0xAAF,
-0XCCF,
01234, // octal as integer
-0126,
@@ -34,7 +34,7 @@ $scalar_variables = array(
' ',
"string",
'string',
- "0", // numeric as string
+ "0", // numeric as string
"40",
"50.696",
"0x534",
@@ -45,7 +45,7 @@ $scalar_variables = array(
true,
false
);
-/* loop through each valid scalar variables in $scalar_variables
+/* loop through each valid scalar variables in $scalar_variables
and see the working of is_scalar(), expected output: bool(true)
*/
$loop_counter = 1;
@@ -65,7 +65,7 @@ $array = array(10);
$resource = opendir('.');
unset($int_var, $float_var, $string_var, $boolean_var, $object, $array, $resource);
-// resources
+// resources
$fp = fopen(__FILE__, "r");
$dfp = opendir(".");
@@ -73,7 +73,7 @@ $variation_array = array(
NULL,
null,
- array(), // arrays
+ array(), // arrays
array(NULL),
array(true),
array(0),
@@ -96,7 +96,7 @@ $variation_array = array(
@$undefined_var // undefined variable
);
-/* loop through each element of $variation_array to see the
+/* loop through each element of $variation_array to see the
working of is_scalar on non-scalar values, expected output: bool(false)
*/
$loop_counter = 1;