Last active
December 12, 2016 18:08
-
-
Save painteros/f95a8f65b6dd1143299df7df6e64514e to your computer and use it in GitHub Desktop.
MYCOD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Афоризмы</h2> | |
<hr style="border-top:3px dotted black;"/> | |
<?php | |
$quotes[] = '<b>Монета, упавшая</b> на дно реки, может показаться рыбам подарком с неба. Что они будут делать с этим подарком?'; | |
$quotes[] = '<a href="http://maxvizor.ru" target="_blank"><img src="http://muligen.ru/uploads/posts/2014-09/1412066886_7ae9edd3241c.jpg" width="150" height="253" alt="Это текстовая ссылка"></a>.'; | |
$quotes[] = 'Если увидишь нечто, к чему стоит приложить руку, поступи не так, как подсказывает разум, но как велит настроение.'; | |
$quotes[] = 'Если то, что ты делаешь, трудно тебе - посмотри, нуждаешься ли ты в этом.'; | |
$quotes[] = '<a href="http://maxvizor.ru" target="_blank"><img src="http://muligen.ru/uploads/posts/2015-01/1420941407_lovers-in-a-wood-under-moonlight-1873.jpg" width="150" height="253" alt="Это текстовая ссылка"></a>.'; | |
srand ((double) microtime() * 1000000); | |
$random_number = rand(0,count($quotes)-1); | |
echo ($quotes[$random_number]); | |
?> | |
<hr style="border-top:3px dotted black;"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment