Can PHP prepend a string to each character of another string?
I have the following code: $target = "abcwa"; for($w = 0; $w <=strlen($target)-1; $w++) { $str = str_split($target[$w],1); //a $str_ = $str[$w]; echo "w:";$w; echo $str_; }// end for w It is printing: w:a Warning: Undefined array key 1 in…