Array_search
| From: | Ian Barnes | Date: | Tue, 27 Apr 2004 06:46:17 +0000 |
| Subject: | Array_search | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184730@lists.php.net to get a copy of this message | ||
Hi,
This is what I have done so far:
<?php
$dfile=file($cfg);
$testingstring = "#this,line,is,for,ian";
$testing=array_search($testingstring, $dfile);
print_r ($testing);
?>
This is the exact line from the $cfg file that I am searching for:
#this,line,is,for,ian
It doesnt work, it doesnt return anything. Anyone know why? I cant figure it
out.
Thanks alot.
Ian