Created
July 28, 2023 09:14
-
-
Save sashabeep/3486547f86552d800bf9c45c32a3df56 to your computer and use it in GitHub Desktop.
formresult double quotes
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
array_walk($data, function(&$v, $k) { | |
if(is_string($v) && strpos($v, '"') !== false) { | |
$v = str_replace('"', '\"', $v); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment