Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function makePost( $title , $body )
- {
- $output = '
- <div id="post_n" class="post">
- <h2>'.$title.'</h2>
- <p>'.$body.'</p>
- </div>
- ';
- return $output;
- }
- ?>
- <html>
- <head>
- </head>
- <body>
- <h1>Erik's Blog</h1>
- <?php
- print makePost( "First Post Title" , "First post body. First post body. First post body. First post body. First post body. First post body. First post body. First post body. " );
- print makePost( "Second Post Title" , "Second post body. Second post body. Second post body. Second post body. Second post body. Second post body. Second post body. Second post body. " );
- print makePost( "Third Post Title" , "Third post body. Third post body. Third post body. Third post body. Third post body. Third post body. Third post body. Third post body. " );
- print makePost( "Fourth Post Title" , "Fourth post body. Fourth post body. Fourth post body. Fourth post body. Fourth post body. Fourth post body. Fourth post body. Fourth post body. " );
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement