image - PHP img alt attribute -


this question has answer here:

i want include image alt attribute using php.

i have following code...

    <?php echo img(imagepath . 'logo.png'); ?> 

how go adding alt attribute - "my awesome alt" - image using php when go view source see image?

    <img src="http://examplesite.com/img/logo.png" alt="my awesome alt"/> 

i using codeigniter.

<?php echo img(array('src'=>'image/picture.jpg', 'alt'=> 'alt information')); ?> 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -