php代码:
<?php setcookie( "vegetable", "artichoke", time()+3600, "/",".oschina.net", 0 );
?>
<title>Setting and Printing a Cookie Value</title>
<?php if ( isset( $_COOKIE['vegetable'] ) ) {
print "<p>Hello again, your chosen vegetable is ";
print "{$_COOKIE['vegetable']}";
} else {
print "<p>Hello you. This may be your first visit</p>";
}
?>
php免费学习视频:立即使用
踏上前端学习之旅,开启通往精通之路!从前端基础到项目实战,循序渐进,一步一个脚印,迈向巅峰!










