Hi I want to replace text inside the single quotes in line
$key = 'ABC';
I wrote this PHP code, :
$data = '$key = \'ABC\'';
preg_match($data, '/s$key = \'(.*)\'\;/s', $security_key);
print_r($security_key);
but it’s giving warnings like Warning: preg_match() [function.preg-match]: No ending matching delimiter ‘>’
1 Answer