mam takie coś:
<?php function clean_filename($filename) { //replaces all characters up through space and all past ~ along with the above res
erved characters } ?>
Funkcja usuwa z nazwy pliku wszystkie znaki nie-alfanumeryczne. Funkcja działa poprawnie, ale wyświetla kilka notice'ów o tej samej treści:
Kod
Notice: Use of undefined constant _ - assumed '_' in D:\Projects\htdocs\doc\test\index.php(7) : regexp code on line 1
Co jest nie tak? Bo się zagubiłem...