php - How to put a variable in quotes? -


i have variable $teste = hiiiii

i need put variable inside quote , double quote. this:

"'$teste'" value "'hiiiii'"

i'm trying concatenation not working. how that???

you can escape quotes:

echo "\"'$teste'\""; 

will print out: "'hiiiii'"


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -