Skip to content

How to play sound with PHP?

$file_name = "sound.mp3";
echo '<audio autoplay="true" style="display:none;">
       <source src="'.$file_name.'">
      </audio>';
See also  How to add space between image and text in CSS?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.