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.
str_getcsv
1 parent a8fbd9f commit f63d4feCopy full SHA for f63d4fe
src/MartinGeorgiev/Utils/DataStructure.php
@@ -26,7 +26,7 @@ public static function transformPostgresTextArrayToPHPArray(string $postgresArra
26
throw new \InvalidArgumentException('Only single-dimensioned arrays are supported');
27
}
28
29
- $phpArray = \str_getcsv(\trim($textArrayToTransform, '{}'));
+ $phpArray = \str_getcsv(\trim($textArrayToTransform, '{}'), escape: '\\');
30
foreach ($phpArray as $i => $text) {
31
if ($text === null) {
32
unset($phpArray[$i]);
0 commit comments