fork(7) download
  1. <?php
  2. $a = 'valoarea variabilei'; // definesc o variabila
  3. print 'Textul definit cu ghilimele contine $a'; // Textul definit cu ghilimele contine $a
  4.  
  5. print "\n\n"; // pentru lizibilitate
  6. print 'Porecla ta e Kelu\' ?'; // sir delimitat de ghilimele simple ce contine un apostrof
  7. print 'Text cu backslash \\'; // sir delimitat de ghilimele simple ce contine un backslash
  8.  
  9. print "\n\n"; // pentru lizibilitate
  10. print 'Alte escape chars nu sunt interpretate \n \t \b'; // textul este afisat ca atare
  11. ?>
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
Textul definit cu ghilimele contine $a

Porecla ta e Kelu' ?Text cu backslash \

Alte escape chars nu sunt interpretate \n \t \b