note 73893 rejected from function.file by bobby
| From: | bobby@php.net | Date: | Wed, 14 Mar 2007 22:40:11 +0000 |
| Subject: | note 73893 rejected from function.file by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-124462@lists.php.net to get a copy of this message | ||
Note Submitter: bimbofred at gmail dot com
----
I created some code:
<?php
$open = file(file.txt)
if(file["0"]=="hello){
echo "it works";
}else{
echo "it don't work";
}
?>
But it doesnt work even if I echo file["0"] and it is "hello".
Does anyone know whats wrong.