Waarom krijg ik bij onderstaande een parse error, || is toch OR of moet ik daar iets anders voor gebruiken ?
else if ((!eregi("[0-9]{4,4}", $yyyy)) || ($yyyy => 4))
else if ((!eregi("[0-9]{4,4}", $yyyy)) || ($yyyy => 4))
Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.
Hail to the guardians of the watchtowers of the north
Verwijderd
1
| else if ((!eregi("[0-9]{4,4}", $yyyy)) || ($yyyy => 4)) |
Verwijderd
1
2
3
4
5
6
7
8
| if ($123 === true) { blaat1; } elseif ((!eregi("[0-9]{4,4}", $yyyy)) || ($yyyy >= 4)) { blaat2; } |
kijk eens goedVerwijderd schreef op 11 september 2002 @ 21:21:
PHP:
1 else if ((!eregi("[0-9]{4,4}", $yyyy)) || ($yyyy => 4))
kijk s goed
(!eregi("[0-9]{4,4}", $yyyy))
en
($yyyy => 4)
Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.
Verwijderd
((!eregi("[0-9]{4,4}", $yyyy)) || ($yyyy >= 4)).oisyn schreef op 11 september 2002 @ 21:23:
kijk eens goed
met $yyyy >= 4 test je niet of $yyyy uit 4 of meer tekens bestaat, maar of $yyyy de waarde 4 of hoger heeft
Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz
Lees ff
Duracell schreef op 11 september 2002 @ 21:11:
Dus je wilt een true krijgen als $yyyy 4 tekens lang is =>
http://www.php.net/manual/en/function.strlen.php
Hail to the guardians of the watchtowers of the north