Ver original<?php$url = '22-lalala-1'; $numero = end(explode('-', $url)); $palabra1 = str_replace($numero,'',$url);echo $palabra1;?>