This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? php | |
/** | |
* 对二维数组去重 | |
* @param $array2D | |
* @return array | |
*/ | |
function unique_array_more($array2D) | |
{ | |
foreach ($array2D[0] as $key => $value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function filterArray($oldArray,$keyArray) | |
{ | |
$newArray=array_intersect_key($oldArray, array_flip($keyArray)); | |
return $newArray; | |
} | |
$promotion = array_intersect_key($promotion, array('id', 'promotion_id', 'promotion_actived', 'promotion_title', | |
'promotion_detail', 'promotion_type', 'promotion_type_name', 'sku_info', 'start_time', 'cancel_time','effect_scene')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
*============================ | |
* author:Farmer | |
* time:2017/12/19 | |
* blog:blog.icodef.com | |
* function:加密方式 | |
*============================ | |
*/ |
NewerOlder