projects
/
weblabels.fsf.org.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
commiting uncommited changes on live site
[weblabels.fsf.org.git]
/
crm.fsf.org
/
20131203
/
files
/
sites
/
all
/
modules-old
/
civicrm
/
Civi
/
CiUtil
/
Arrays.php
1
<
?php
2
namespace
Civi\CiUtil
;
3
4
/**
5
* Class Arrays
6
*
7
* @package Civi\CiUtil
8
*/
9
class
Arrays
{
10
/**
11
* @param $arr
12
* @param $col
13
*
14
* @return array
15
*/
16
public static function
collect
(
$arr
,
$col
) {
17
$r
=
array
();
18
foreach
(
$arr
as
$k
=>
$item
) {
19
$r
[
$k
] =
$item
[
$col
];
20
}
21
return
$r
;
22
}
23
24
}