I have a String in php variable. I want to add " and ' character before of the string variable and ' and " character after of my string variable. The following is my code but it fail to display what I wanted like "'String'"
$channel = """.$channel.""";
$channel = "\'".$channel."\'"
echo $channel