Hi I was wondering to add "" after/before a variable.
CODE:
<?php
while (false !== ($entry = readdir($handle))) {
$entry = "$entry";
$patterns = array();
$patterns[0] = '/.swf/';
$replacements = array();
$replacements[0] = ',';
echo preg_replace($patterns, $replacements, $entry);
}
?>
Echos out
word1,word2,word3,etc
I want it to echo out: "word1","word2","word3",etc instead How can you do it?