We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4025363 commit 765ffc1Copy full SHA for 765ffc1
src/EDI/Encoder.php
@@ -52,14 +52,17 @@ public function __construct($array = null, $wrap = true)
52
$this->encode($array, $wrap);
53
}
54
55
- public function encode($arr, $wrap = true)
+ public function encode($arr, $wrap = true, $filterKeys = false)
56
{
57
$this->originalArray = $arr;
58
$edistring = '';
59
$count = count($arr);
60
$k = 0;
61
foreach ($arr as $row) {
62
$k++;
63
+ if ($filterKeys) {
64
+ unset($row['segmentIdx']);
65
+ }
66
$row = array_values($row);
67
$edistring .= $this->encodeSegment($row);
68
if (!$wrap && $k < $count) {
0 commit comments