2014-09-01 104 views
-4
<?php 
function me1($str) { 
$hash = 'http://me1.wink.ws/me1/request.php?a=' . $str; 
return $hash 
} 
$hi = me1('Hi'); 
?> 

我的錯誤在哪裏? 解析錯誤:語法錯誤,在上線/home/u727762781/public_html/client/me1.php意外「}」 5PhP錯誤:功能

固定碼:

<?php 
header('Content-Type: text/plain'); 
function me1($str) { 
$hash = file_get_contents('http://me1.wink.ws/me1/request.php?a=' . $str); 
return $hash; 
} 
$hi = me1('Hi'); 
echo $hi; 
?> 
+0

可能的重複[參考 - 這個錯誤在PHP中意味着什麼?](http://stackoverflow.com/questions/12769982/reference-what-does-this-error-mean-in-php) – BlitZ 2014-09-01 10:39:01

+0

我會如果可以的話,投我自己的帖子 – user83250 2014-09-01 16:02:28

回答

4

你忘分號末的回報聲明。