함수 unset


1 Bash[ | ]

str=hello
if [ -n "$str" ]; then
	echo "Yes"
else
	echo "No"
fi
# Yes
unset str
if [ -n "$str" ]; then
	echo "Yes"
else
	echo "No"
fi
# No

2 PHP[ | ]

$a = 1;
unset($a);
echo $a; # Error!
$a = 1;
unset($a);
var_dump( isset($a) );
# bool(false)

3 Python[ | ]

a = 1
del(a)

4 같이 보기[ | ]

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