COM createImage

提供: GeeklogJpWiki

lib-common.php>COM createImage

説明

string   COM_createImage  (string $url, [string $alt = ''], [array $attr = array()]) 

HTMLのimgを作成

パラメータ

$url
the URL of the image, either starting with http://... or $_CONF['layout_url'] is prepended
$alt
the 'alt'-tag of the image
$attr
an array of optional attributes for the link for example array('title' => 'whatever');

返り値

the HTML img

使用例

個人用ツール