<?php $url = 'http://mydomain.com/yep/2014-04-01/some-title'; $urlParts = explode('/', str_ireplace(array('http://', 'https://'), '', $url)); echo $urlParts[1];
You have javascript disabled. You will not be able to edit any code.