Tuesday, 1 May 2018

If statement structure in PHP

Greater than or equal to is >= sign, not =>


Update:
You are right. It's small but hard to find mistake.
It took me to split whole line into pieces to see where the problem is:


if
(
$varp
=>
80000
)

So, it says parse error on line 5 and I had to doublecheck this operator.
Of course, at first I separated the problem line from the rest of the code to be certain.

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...