"PHP is numeric()"의 두 판 사이의 차이

(새 문서: ==개요== ;PHP is_numeric() <source lang='php'> // true is_numeric(42); is_numeric("42"); is_numeric(3.14159); is_numeric("1e5"); // false is_numeric("A"); </source> ==같이 보...)
 
14번째 줄: 14번째 줄:
==같이 보기==
==같이 보기==
* [[함수 is_number()]]
* [[함수 is_number()]]
==참고 자료==
* http://php.net/manual/kr/function.is-numeric.php
* http://www.w3resource.com/php/function-reference/is_numeric.php


[[분류: PHP]]
[[분류: PHP]]
[[분류: Validation]]
[[분류: Validation]]

2017년 5월 21일 (일) 16:57 판

1 개요

PHP is_numeric()
// true
is_numeric(42); 
is_numeric("42");
is_numeric(3.14159);
is_numeric("1e5");

// false
is_numeric("A");

2 같이 보기

3 참고 자료

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