yeah ok, so I need a delimiter to make the explode function on a string work, but what I'm trying to do is make an array filled with each character of the data contained in a file. I've tried something like
$dirToList = "./";
$handle = opendir("$dirToList");
while ($entry = readdir($handle)) {
if (!is_dir($dirToList."/".$entry)) {
$currentFile = fopen($entry, 'r') ;
$data= explode("", $currentFile);
echo $data;
}
}
but explode won't work on this ("" isn't a delimiter!). Is there another function I could use to break the file up into an array with each element a character of the file contents? Obviously it's just a string so there's no delimiter in it.
Cheers all!