[Solved] Fatal error: Switch statements may only contain one default clause (php7)

You can not use a case statement inside a case. Try this corrected code switch ( $type ) { case ‘heading’: echo ‘</td></tr><tr valign=”top”><td colspan=”2″><h4>’ . $desc . ‘</h4>’; break; case ‘checkbox’: echo ‘<input class=”checkbox’ . $field_class . ‘” type=”checkbox” id=”‘ . $id . ‘” name=”‘ . $shortname_options . ‘[‘ . $id . ‘]’ . … Read more

[Solved] What is the difference between session_id(), session_create_id() and session_regenerate_id() in php?

session_id(): Get and/or set the current session id session_regenerate_id(): Update the current session id with a newly generated one session_create_id(): Create new session id Here is a link to the PHP sessions doc and PHP docs 6 solved What is the difference between session_id(), session_create_id() and session_regenerate_id() in php?