File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / array / extract_variation8.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:03 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

--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";
?>

--EXPECTF--
*** Testing for Numerical prefixes ***
int(3)
int(1)

Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>