Skip to content

Instantly share code, notes, and snippets.

@segg21
segg21 / gist:8c726621e1f81cad9da508b14bff1769
Created July 7, 2018 22:31 — forked from jameshartig/gist:2357002
Get MP3 bit rate and sample rate in PHP
//returns an assoc array with bitRate (kbps) and sampleRate (hz)
function getMP3BitRateSampleRate($filename)
{
if (!file_exists($filename)) {
return false;
}
$bitRates = array(
array(0,0,0,0,0),
array(32,32,32,32,8),
@segg21
segg21 / Route.php
Last active August 24, 2018 08:01
Simple routing php
<?php
/*
\| Route/PHPRouting101
\| @author => LegitSoulja
\| @copyright => LegitSoulja
\| @license => Apache
\| @source => https://gist.github.com/LegitSoulja/ae1c56af0999be898dee1ec5ced6318c
\| @source => https://github.com/LegitSoulja/PHPRouting101
*/
/*