arrayOne + foreach loop = arrayTwo
<?php /* version +7 */
$input = array("teamA","teamB","teamC");
foreach($input as &$value){
$assign = "50"; /* The data just temp */
$data = array($value=>$assign);
}
echo $data["teamA"];
?>
繁星coding
温温酱
相关分类