I need to add a filename to a path under Windows. Sometimes the path
may have the "\" sometimes not. Is there some function that checks if
the path does not end in "\" to add it or some quick way of doing this?
E.g. addBs($path) . $filename;
The most efficient way I could think of is
rtim($path,"\\" ) . "\\" . $filename;
Thanks.
may have the "\" sometimes not. Is there some function that checks if
the path does not end in "\" to add it or some quick way of doing this?
E.g. addBs($path) . $filename;
The most efficient way I could think of is
rtim($path,"\\" ) . "\\" . $filename;
Thanks.
Comment