title: Create a .wav file of a certain frequency with PHP
body: <p>I'm a rookie with this stuff so go easy...</p>
  
  <p>All I want to do is construct a simple tone of a certain frequency using PHP. It should output a .wav file which can be inserted straight into a HTML audio tag.</p>
  
  <p>I really have no idea where to begin as I don't even understand how audio data is stored. Can anyone suggest a resource or help me out directly?</p>
  
  <p>It would be muchly appreciated :)</p>
  
  <p>P.S there is one similar question, though I don't think it's what I'm looking for.</p>