Beste,
Ik zit met een probleem. Ik krijg dit te zien:
Er moet natuurlijk het woord staan dat in één van de Arrays staat. Hoe kan dat? Dit is mijn script:
Ik zit met een probleem. Ik krijg dit te zien:
The string Array was found. Er moet natuurlijk het woord staan dat in één van de Arrays staat. Hoe kan dat? Dit is mijn script:
[COLOR= #0000BB]<?php
$include_file[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://rooster.avoo.nl/ksg/mr-leerling-l/subst_001.htm[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$teachers[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]Dorsthorst[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$compare[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$teachers[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$pos[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/strpos"]strpos[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$include_file[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$compare[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$pos[/COLOR] [COLOR= #007700]===[/COLOR] false[COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"The string $compare was not found."[/COLOR][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"The string $compare was found."[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$include_file[/COLOR][COLOR= #007700];[/COLOR]
?> 