Compter le nombre de lignes dans un fichier (PHP)

$content_file = file_get_contents('my_file.txt');

echo substr_count($content_file, "\n");

 


11 mai 2024 - Wakonda - PHP

Rechercher

Tags

Publicité

Suivez-nous

Aidez-nous !


Loading…
Loading the web debug toolbar…
Attempt #