Add backslashes in before predefined characters in a string.
. \ + * ? [ ^ ] ( $ )
$str = "Hello Dear. (How are you?)";
Hello Dear\. \(How are you\?\)
Coderraj is the global online platform and circle for programmers to learn, communicate, share their knowledge and growth their careers.
Copyright ©2022 coderraj.com. All Rights Reserved.