blob: 3e6a9ad3743ff7be38e471c250f260a14935743d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--TEST--
Test extract() function (variation 8)
--FILE--
<?php
/* To show variables with numerical prefixes cannot be extracted */
$var["i"] = 1;
$var["j"] = 2;
$var["k"] = 3;
echo "\n*** Testing for Numerical prefixes ***\n";
var_dump(extract($var));
$var1["m"] = 1;
$var1[2] = 2;
$var1[] = 3;
var_dump ( extract($var1));
echo "\nDone";
?>
--EXPECT--
*** Testing for Numerical prefixes ***
int(3)
int(1)
Done
|