|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-26 03:39 UTC] cynic@php.net
[2002-08-26 04:54 UTC] jacob at emcken dot dk
[2002-08-26 12:10 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 06:00:01 2026 UTC |
I am getting errors when executing the following code wich seems to be the right syntax!? I tested it on 2 other servers running apache and php4 Here are 2 examples of the some code wich should work if i'm not mistaken: <? //Test 1 //This example give a "parse error in line 7" $a=2; $b=3; if($a==$b || $b==3) { echo "hey"; } //Test 2 //This example gives the error: "Call to undefined function: ()" $a=2; $b=3; if(($a==$b) || ($b==3)) { echo "hey"; } ?> I have coded alot of things on the server and this i the first time im have run into trouble. By the way this code sample runs just fine: <? if(false || true) { echo "hey"; } //And this one works just fine also $a=2; $b=3; if($b==3) { echo "hey"; } ?>