PHP embed html image as a link

后端 未结 4 700
执念已碎
执念已碎 2021-01-23 05:50

How do I go about using an image as a link in php? I have never put two html elements together in one echo so it\'s kinda new for me. Here\'s my code:

htmltest.php

4条回答
  •  囚心锁ツ
    2021-01-23 06:31

    You can also use ' instead of " for strings, e.g.

    This works: echo '"Hello!"'; => "Hello!"

    This wont work: echo "'Hello'";

提交回复
热议问题