LabMM4 (T12 - 12/13) - Estruturas de controlo

600 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
600
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
60
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

LabMM4 (T12 - 12/13) - Estruturas de controlo

  1. 1. PHP: Estruturas de controloCarlos SantosLabMM 4 - NTC - DeCA - UAAula 12, 04-04-2013
  2. 2. Strings: diferença entre aspas e pelicasEm PHP as aspas e as pelicas podem ter resultados diferentes... • <?php $name = "Oliver"; $output = "Hello $name. This is one line.nAnd this is another line."; echo $output; ?> • no código fonte (source) da página HTML • Hello Oliver. This is one line. And this is another line.
  3. 3. Strings: diferença entre aspas e pelicasEm PHP as aspas e as pelicas podem ter resultados diferentes... • <?php print This string will $prt exactly as its n declared.; ?> • no código fonte da página HTML • This string will $prt exactly as its n declared.
  4. 4. Estruturas de controlohttp://www.php.net/manual/en/language.control-structures.php

×