addcslashes

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Quote string with slashes in a C style
<?php addcslashes(string $string, string $characters): string
<?php             $loopedText = $associative ? $parses->first() : $parses->implode('');




            $text = $this->preg_replace('/'.preg_quote($match[0][0], '/').'/m', addcslashes($loopedText, '\\$'), $text, 1);

        }



        return $text;
<?php                 $replacement = $this->valueToLiteral($replacement);

            }



            $text = $this->preg_replace('/'.preg_quote($tag, '/').'/m', addcslashes($replacement, '\\$'), $text, 1);

            $text = $this->injectExtractions($text, 'nested_tag_pair');

        }
<?php             $conditional .= ': ?>';



            $text = $this->preg_replace('/'.preg_quote($match[0], '/').'/m', addcslashes($conditional, '\\$'), $text, 1);

        }



        $text = $this->preg_replace($this->conditionalElseRegex, '<?php else: ?>', $text);