PHP settype()

1 개요[ | ]

PHP settype()
$foo = '5bar';
settype( $foo, 'integer' );
var_dump( $foo );
# int(5)

$bar = true;
settype( $bar, 'string' );
var_dump( $bar );
# string(1) "1"

2 같이 보기[ | ]

3 참고[ | ]

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