mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
Arrays > remove unnecessary code
This commit is contained in:
@@ -48,23 +48,6 @@ class Arrays
|
|||||||
|
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
$effect .= self::values2string($value, $arrayColumnKey, $separator);
|
$effect .= self::values2string($value, $arrayColumnKey, $separator);
|
||||||
/*
|
|
||||||
* Previous version. Doesn't work with array containing arrays, e.g.:
|
|
||||||
* array(
|
|
||||||
* 1 => array(
|
|
||||||
* 'item1',
|
|
||||||
* 'item2'
|
|
||||||
* ),
|
|
||||||
* 2 => array(
|
|
||||||
* 'item3',
|
|
||||||
* 'item4'
|
|
||||||
* )
|
|
||||||
* )
|
|
||||||
*
|
|
||||||
if(isset($value[$arrayColumnKey])){
|
|
||||||
$effect .= $value[$arrayColumnKey];
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
} else {
|
} else {
|
||||||
if (empty($arrayColumnKey)) {
|
if (empty($arrayColumnKey)) {
|
||||||
$effect .= $value;
|
$effect .= $value;
|
||||||
|
|||||||
Reference in New Issue
Block a user