What is unexpected T_VARIABLE in PHP?
Parse error: syntax error, unexpected T_VARIABLE This is the line that got the error: $list[$i][$docinfo['attrs']['@groupby']] = $docinfo['attrs']['@count']; Is there anything wrong? ...
Parse error: syntax error, unexpected T_VARIABLE This is the line that got the error: $list[$i][$docinfo['attrs']['@groupby']] = $docinfo['attrs']['@count']; Is there anything wrong? ...
I have some code with the a structure similar to this function bbcode($Text) { //$Text = preg_replace("/\[video\](.+?)\[\/video\]/",embed_video($1), $Text); return $Text;} function embed_video($url){ if (preg_match("/http:\/\/www.youtube.com\/watch\?v=([0-9a-zA-Z-_]*)(.*)/i", $url, $matches)) { return ...
Hey there. I've got the following code: class user { //URLs private static $signInURL = $_SERVER['DOCUMENT_ROOT'].'/?page=signin'; ... ... ... And i get and unexpected T_VARIABLE error. Can somebody tell me how to construct that url so it won't give me an error? ...