Skip to content

Instantly share code, notes, and snippets.

@sashabeep
Created July 28, 2023 09:14
Show Gist options
  • Save sashabeep/3486547f86552d800bf9c45c32a3df56 to your computer and use it in GitHub Desktop.
Save sashabeep/3486547f86552d800bf9c45c32a3df56 to your computer and use it in GitHub Desktop.
formresult double quotes
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