Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $data = ['judul_artikel' => 'ini judul'];
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Document</title>
- </head>
- <body>
- <div style="background:red;color: white;width: 200px;height: 100px;">
- <?php foreach( $data as $key ): ?>
- <?php echo '<p>' . $key . '</p>'; ?>
- <p> <?php echo $key; ?> </p>
- <?php endforeach; ?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement