<?php
//The session_start() function must put before <html> tag
session_start();
// store session value
$_SESSION['views']=2;
?>
output :
note :
1) no displays here, but stores some value
2) "views" value is now 2
//The session_start() function must put before <html> tag
session_start();
// store session value
$_SESSION['views']=2;
?>
output :
note :
1) no displays here, but stores some value
2) "views" value is now 2