Php Order Array Of Strings Matlab For Loop