martes, 5 de noviembre de 2019

mult function to clean string

<?php

$agent_audio="Local/101@from-queue/n";

echo $d= str_replace('/','',stristr(stristr($agent_audio, '@', true),'/'));
echo "<br>"

?>

will  print  101

No hay comentarios:

Publicar un comentario