I would like to know if it is possible to use php code to generate an image ALT. In every page will be the same picture, but ALT will be different (that is the name of the page).


<img src="path-to-my-static-image" width="379" height="70" alt="<?php some-code-here-to-import-wordpress-post-name ?>" />
Is possible to generate automatic ALT (post name) for the same image ? For wordpress ?

If you have a single image that carries several ALT, how search engines will index the file?
Once? Several times (the number of ALT)?