Why use different quotes gives me different results?

Asked

Viewed 27 times

1

Why do I wear it like that, it comes out different? It’s not the same thing?

$teste = 'HAHAHA';

echo "Variavel $teste<br>"; // Retorna Variavel HAHAHA
echo 'Variavel $teste'; // Retorna Variavel $teste
  • 2

    In this question you will find the answer: https://answall.com/questions/4652/diff%C3%A7a-between-single-double-quote-in-php

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.