Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $a1 = 'hello title';
- $b1 = 'hello!!';
- $c1 = 'ブロック要素';
- $d=0;
- for($i=1;$i<11;$i++){
- $d1 += $i;
- }
- $tmp = <<<eot
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>{$a1}</title>
- </head>
- <body>
- <h1>{$b1}</h1>
- <div>{$c1}</div>
- 処理結果:{$d1}
- </body>
- </html>
- eot;
- setcookie('testcookie',$d1);
- echo $tmp;
- <?php
- $a1 = 'hello title';
- $b1 = 'hello!!';
- $c1 = 'ブロック要素';
- $d=0;
- for($i=1;$i<11;$i++){
- $d1 += $i;
- }
- setcookie('testcookie',$d1);
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title><?=$a1?></title>
- </head>
- <body>
- <h1><?=$b1?></h1>
- <div><?=$c1?></div>
- 処理結果:<?=$d1?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment