로그인

검색

PHP 내장함수 isset() 은 변수나 배열에 값이 할당되어 있는지 알려주는 함수 입니다.

 

값이 할당되어 있다면 참, 아니면 거짓을 반환할 수 있습니다.

 

isset($POST['user_name']);

user_name 변수에 값이 포함되어 전달이 이루어져 변수에 값이 있다면 참이 반환이 되겠습니다.

 

if(isset($POST['user_name']);) {

user_name에 값이 할당되었을 경우 진행될 코드

}else{

user_name 값이 확인 되지 않을 경우 진행될 코드

}

 

위와 같이 활용할 수 있습니다.

Who's 꿀팁관리소장

profile
라이믹스로 커뮤니티 사이트를 운영하는 비개발자 운영자 입니다.
파트너쉽 맺으실 사이트 운영자분 환영합니다.
2 추천

php 기초지식(24)

php를 학습할 수 있습니다.

  1. read more
  2. read more
  3. php 객체 확장

    Date2021.09.20 Views158 Votes2
    Read More
  4. php 객체 생성자 __construct 메서드

    Date2021.09.17 Views398 Votes2
    Read More
  5. Read More
  6. php 객체 지향의 이해 4

    Date2021.09.12 Views212 Votes2
    Read More
  7. php isset()

    Date2021.09.11 Views105 Votes2
    Read More
  8. php 변수의 영역 전역변수와 지역변수

    Date2021.08.29 Views1558 Votes2
    Read More
  9. php 함수의 반환값

    Date2021.08.28 Views136 Votes2
    Read More
  10. php 함수의 기초

    Date2021.08.25 Views155 Votes2
    Read More
  11. php 다차원 배열

    Date2021.08.14 Views411 Votes2
    Read More
  12. Read More
  13. Read More
  14. php 배열의 원소 제거 unset()

    Date2021.08.08 Views288 Votes2
    Read More
  15. Read More
  16. Read More
  17. php 배열(array)

    Date2021.07.31 Views146 Votes2
    Read More
  18. php 반복문 for, while

    Date2021.07.28 Views379 Votes2
    Read More
  19. php 증감 연산자 ++, -- 3

    Date2021.07.27 Views195 Votes2
    Read More
  20. 활용이 가장 많은 중요한 if 조건문 3

    Date2021.07.26 Views185 Votes2
    Read More
  21. php 이스케이프 \(역슬래쉬) 사용 1

    Date2021.07.24 Views632 Votes2
    Read More
  22. Read More
Prev 1 2 Next
/ 2