250x250
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- iOS 개발자
- MAC
- iPhone
- 자바스크립트
- 비전공 개발자
- HTML
- 프론트엔드
- front-end
- CSS
- IOS
- html5
- ipad
- jQuery
- button
- Animation
- hover
- javascript
- react
- SWIFT
- 풀스택
- php
- 애니메이션
- keyframes
- xcode
- 비전공자
- effect
- 개발자
- css3
- 백엔드
- image
Archives
- Today
- Total
비전공자 개발일기
SWITCH CASE with PHP 본문
728x90
SMALL


<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WEB</title>
</head>
<style>
* {
text-align: center;
}
</style>
<body>
<h1>SWITCH with PHP</h1>
<br>
<br>
<br>
<br>
<br>
<?php
$num = 100;
switch ($num) {
case(100):
?>
<p>현재 저장된 숫자 : <?=$num?></p>
<?php
break;
case(200):
?>
<p>현재 저장된 숫자: <?=$num?></p>
<?php
break;
default:
?>
<p>현재 저장된 숫자 없음</p>
<?php
break;
}
?>
</body>
</html>728x90
LIST
'PHP' 카테고리의 다른 글
| Function with PHP (변수) (0) | 2022.01.03 |
|---|---|
| WHILE, FOR, FOREACH in PHP (0) | 2022.01.02 |
| PHP with if condition (0) | 2021.12.31 |
| PHP with Select Option (0) | 2021.12.30 |
| PHP & jQuery checkbox 활용 (0) | 2021.12.29 |