2017-06-27から1日間の記事一覧

PHP 関数メモ

function img($file, $alt) { $s = '<p class="img"><img'; $s .= ' src="' . $file . '"'; $s .= 'alt="' . $alt . '"'; $s .= '/></p>'; return $s;} function top_link() { echo '<a href="index.html">TOP PAGE</a>'; } top_link(); echo '<br>';print_footer();echo '<br>';make_html(); ?>