|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-16 10:19 UTC] patrick dot bast at aquitaine dot iufm dot fr
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 02:00:01 2025 UTC |
Description: ------------ In my code, the line 72 is : $pos = strpos($line, '='); return : Parse error: parse error, unexpected '=' in C:\php-gtk\test04.php on line 72 Try to enclose = by "", same result. Reproduce code: --------------- function returnvalue($line) { $line = trim($line); $pos = strpos($line, "="); $value = substr($line, $pos + 1); return $value; } Expected result: ---------------- Will return the correct position of the equal caracter in my string Actual result: -------------- Parse error: parse error, unexpected '=' in c:\php-gtk\virusscan\virusscan.php on line 72