I got an array or words sorted in alphabetical order using sort() function, unfortunately this is case sensitive
Eg sort() will sort them like this
Adam
Bend
Zoo
apple
road
tree
at the moment Iām using
$line=$fullfile[0];
$line = strtolower($line);
$line=split("\n",$line);
sort($line);
But I would like to keep the original form and have them in a case insensitive alphabetical order