Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Print Hangman: picture based, or ASCII 1337 h4x0rz sh1zn17
- if (!isset($word))
- {
- $word = //GetRandomWord
- }
- $word_length = strlen($word);
- for ($i = 0; $i < $word_length; i++)
- {
- if () //Letter has been guessed
- {
- echo ' ' , $ , ' '//print letter
- }
- else
- {
- echo ' _ '
- }
- }
- echo $guessed_letters;
- //print dropdown menu with letters
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement