Count No. of Characters in a file

by satheeshkumar 2012-07-14 14:24:54

Count No. of Characters in a file using php


$f = "filename";
$str = file_get_contents($f);
$numChar = strlen($str);
echo "This file have ". $numChar . " character(s)";
?>

Tagged in:

592
like
0
dislike
0
mail
flag

You must LOGIN to add comments