extract

w

 

http://php.net/manual/en/function.extract.php

<?php

/* Suppose that $var_array is an array returned from
   wddx_deserialize */

$size = "large";
$var_array = array("color" => "blue",
    "size" => "medium",
    "shape" => "sphere");
extract($var_array, EXTR_PREFIX_SAME, "wddx");

echo "$color, $size, $shape, $wddx_size\n";

 

posted @ 2017-04-25 20:03  papering  阅读(184)  评论(0编辑  收藏  举报