- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$post_link = "http://heamiel.dev/wordpress/sponsors/%sponsors_type%/joe-meloen";
preg_match( '(%sponsors_type%|%programma_dag%)', $post_link, $matches );
var_dump( $matches );