Anonymous user
Rename a file: Difference between revisions
added php
m (→{{header|Ruby}}: add core rename method to solution) |
(added php) |
||
Line 239:
move (catfile rootdir, 'input.txt'), (catfile rootdir, 'output.txt');
move (catfile rootdir, 'docs'), (catfile rootdir, 'mydocs');</lang>
=={{header|PHP}}==
<lang php><?php
rename('input.txt', 'output.txt');
rename('docs', 'mydocs');
rename('/input.txt', '/output.txt');
rename('/docs', '/mydocs');
?></lang>
=={{header|Pop11}}==
|