I have this code but is not working and I don't know why...
function link_next($local_id, $link_type) {
if ( !is_numeric($local_id) ) die();
elseif ($link_type = 'a-href') { $something = 'a-href'; }
elseif ($link_type = 'link-rel') { $something = 'link-rel'; }
else { $something = 'blablabla'; }
return $local_id.'-'.$something;
}
$id ='14678';
echo link_next($id, 'link-rel');
// edit
The function always display 14678-a-href