<?php
$link = '13542345/essa_e_minhastring';
//ou em versões anterios ao 5.4
//$numero = explode('/', $link);
//echo $numero[0];
echo $numero;
PD9waHAKCiRsaW5rID0gJzEzNTQyMzQ1L2Vzc2FfZV9taW5oYXN0cmluZyc7CiRudW1lcm8gPSBleHBsb2RlKCcvJywgJGxpbmspWzBdOwoKLy9vdSBlbSB2ZXJzw7VlcyBhbnRlcmlvcyBhbyA1LjQKLy8kbnVtZXJvID0gZXhwbG9kZSgnLycsICRsaW5rKTsKLy9lY2hvICRudW1lcm9bMF07CgoKZWNobyAkbnVtZXJvOwo=