cgy12306
첫번째 애플리케이션 작성 본문
1번째 줄은 php엔진에게 php문법을 사용한다고 알려줌.
2번째 줄은 echo는 뒤에 있는 것을 화면에 출력하는 명령어. 문자열은 “ ”, ‘ ’ 를 사용.
3번째 줄은 php문법을 종료한다고 알려줌.
echo “Hello workld”;는 html 내부이기 때문에 그대로 출력되고 그 다음 줄 <?php부터는 php문법이 시작된다고 선언했기 때문에 Hello World만 출력된다.
출처 : https://opentutorials.org/course/62/5116
첫번째 PHP 에플리케이션 - 생활코딩
예제 /firstapp/helloworld.php https://github.com/egoing/phpeverybody/blob/master/firstapp/helloworld.php /firstapp/helloworld2.php https://github.com/egoing/phpeverybody/blob/master/firstapp/helloworld2.php echo "Hello worl
opentutorials.org
'PHP' 카테고리의 다른 글
변수 고급주제 (0) | 2019.07.09 |
---|---|
변수 (0) | 2019.07.09 |
숫자와 문자 (0) | 2019.07.09 |
왜 server side script(php, java, c, python…)를 사용하는가??? (0) | 2019.07.09 |
PHP 설치와 설정 (0) | 2019.07.09 |
Comments