프로그래밍/PHP

PHP 프로젝트에 사용되거나 사용되어야 할 라이브러리들을 기록하고 설치할 수 있게 해줌. PHP 버전에 따른 패키지 설치버전을 자동으로 정리해준다. 핵심요약 : [생성하는 파일 설명] composer.json
foreach ( $items as $item) key와 value 가 필요한 경우 foreach ( $items as $key => $item )
$response->setParameter('foo', 'bar'); sConfig::set('foo', 'bar'); 차이점은 ? -> 는 주로 인스턴의 멤버를 호출할때.. :: 는 주로 정적 멤버를 호출할때..(static) class Example { public static function hello(){ echo 'hello'; } public function world(){ echo 'world'; } } // Static method, can be called from the class name Example::hello(); // Instance method, can only be called from an instance of the class $obj = new Example(); $o..
1. html 문서에서..php 사용법 변수는 달러표시를 사용해서 만든다 $변수 문장이 끝날때는 항상 세미콜론(;) 을 입력한다. echo $name; include, require 차이점.. include 는 파일이 없어도 계속진행..에러가 나지 않고 진행 require 는 파일이 없으면 에러발생..둘다 사용법은 동일 include_once, require_once 한번만 파일이 포함됨.
https://www.w3schools.com/php/php_ref_string.asp PHP String Functions W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. www.w3schools.com
에그티비
'프로그래밍/PHP' 카테고리의 글 목록