Serial communication with PHP

The third column implies that the connection to the port was made, that some data was written to the port (probably using a buffer), that the buffer was flushed (the data was actually sent), and that the port was closed.

All that should have arrived at the Arduino was the letter 'a'.