很难从图片中分辨出你在用什么,但我会假设换行符。
<?php
$string = "http://www.podcast.com/track.mp3
2207703
audio/mpeg";
echo "<pre>";
echo $string; // should show multiple rows
要抓住第一条线,请尝试
preg_match:
// now grab the first line
if( preg_match (\'/^(.*)$/m\', $string, $matches) ){
echo $matches[0]; // first line is the URL
}