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

Where is my error? Parse error: syntax error, unexpected '}' in /home/u727762781/public_html/client/me1.php on line 5

Fixed Code:

<?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;
?>
user83250
  • 17
  • 1
  • 6
  • possible duplicate of [Reference - What does this error mean in PHP?](http://stackoverflow.com/questions/12769982/reference-what-does-this-error-mean-in-php) – BlitZ Sep 01 '14 at 10:39
  • i would down-vote my own post if i could – user83250 Sep 01 '14 at 16:02

1 Answers1

4

You forgot the semi-colon at the end of the return statement.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335