"함수 copy()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
4번째 줄: 4번째 줄:
;함수 copy()
;함수 copy()
* 파일을 복사하는 함수
* 파일을 복사하는 함수
==Go==
[[분류: Go]]
{{참고|Go copy()}}


==PHP==
==PHP==

2023년 4월 12일 (수) 17:41 기준 최신판


1 개요[ | ]

함수 copy()
  • 파일을 복사하는 함수

2 Go[ | ]

3 PHP[ | ]

copy('example.txt', 'example.txt.bak');
$file = 'example.txt';
$newfile = 'example.txt.bak';

if (!copy($file, $newfile)) {
    echo "failed to copy $file...\n";
}

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}