> im reading in a string from a database, this string will become a file
> name.
> so i need to strip everything BUT lowercase a-z and 0-9. well im
> strtolower
> so i dont need to worry about upper case. blank spaces get replaced
with _
$filename = preg_replace("/[^a-z0-9]/","_",$data);
Replace
hi,
im sort of new to php, and i have the following question.
im reading in a string from a database, this string will become a file name.
so i need to strip everything BUT lowercase a-z and 0-9. well im strtolower
so i dont need to worry about upper case. blank spaces get replaced with _
i wa
2 matches
Mail list logo