<?php $file = "/var/www/infolegale/delivery/toto.txt"; $path = explode('.', $file); $path[count($path) - 1] = "csv"; $finalPath = implode($path, '.'); echo $finalPath;
You have javascript disabled. You will not be able to edit any code.