stripslashes

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Un-quotes a quoted string
stripslashes(string $string): string
            [$idColumn$id] = $this->getUniqueIds($idColumn$parameters);



            if (! 
is_null($id)) {

                
$id stripslashes($id);

            }

        }
        $rule->ignore('Taylor, Otwell"\'..-"''id_column');

        
$rule->where('foo''bar');

        
$this->assertSame('unique:table,column,"Taylor, Otwell\"\\\'..-\"",id_column,foo,"bar"', (string) $rule);

        
$this->assertSame('Taylor, Otwell"\'..-"'stripslashes(str_getcsv('table,column,"Taylor, Otwell\"\\\'..-\"",id_column,foo,"bar"')[2]));

        
$this->assertSame('id_column'stripslashes(str_getcsv('table,column,"Taylor, Otwell\"\\\'..-\"",id_column,foo,"bar"')[3]));



        
$rule = new Unique('table''column');
        $rule->where('foo''bar');

        
$this->assertSame('unique:table,column,"Taylor, Otwell\"\\\'..-\"",id_column,foo,"bar"', (string) $rule);

        
$this->assertSame('Taylor, Otwell"\'..-"'stripslashes(str_getcsv('table,column,"Taylor, Otwell\"\\\'..-\"",id_column,foo,"bar"')[2]));

        
$this->assertSame('id_column'stripslashes(str_getcsv('table,column,"Taylor, Otwell\"\\\'..-\"",id_column,foo,"bar"')[3]));



        
$rule = new Unique('table''column');

        
$rule->ignore(null'id_column');
                    $conditional '<?php if ('.$condition.'): ?>'.addslashes($this->getVariable($if_true$data)).'<?php endif ?>';




                    
$output stripslashes($this->parsePhp($conditional));




                    
$text str_replace($match[0], $output$text);
                    $conditional '<?php echo('.$condition.') ? "'.addslashes($this->getVariable(trim($if_true), $data)).'" : "'.addslashes($this->getVariable(trim($if_false), $data)).'"; ?>';




                    
$output stripslashes($this->parsePhp($conditional));




                    
$text str_replace($match[0], $output$text);
            foreach ($matches[1] as $i => $attr) {


                
$key trim($matches[1][$i]);

                
$value stripslashes($matches[3][$i]);




                if (isset(
$return[$key])) {