Code
- Subs.php ➔ updateStats()
- Subs.php ➔ updateMemberData()
- Subs.php ➔ updateSettings()
- Subs.php ➔ constructPageIndex()
- Subs.php ➔ comma_format()
- Subs.php ➔ timeformat()
- Subs.php ➔ shorten_subject()
- Subs.php ➔ forum_time()
- Subs.php ➔ permute()
- Subs.php ➔ parse_bbc()
- Subs.php ➔ parsesmileys()
- Subs.php ➔ highlight_php_code()
- Subs.php ➔ redirectexit()
- Subs.php ➔ obExit()
- Subs.php ➔ url_image_size()
- Subs.php ➔ setupThemeContext()
- Subs.php ➔ setMemoryLimit()
- Subs.php ➔ memoryReturnBytes()
- Subs.php ➔ template_header()
- Subs.php ➔ theme_copyright()
- Subs.php ➔ template_footer()
- Subs.php ➔ template_javascript()
- Subs.php ➔ template_css()
- Subs.php ➔ custMinify()
- Subs.php ➔ getAttachmentFilename()
- Subs.php ➔ ip2range()
- Subs.php ➔ host_from_ip()
- Subs.php ➔ create_button()
- Subs.php ➔ setupMenuContext()
- Subs.php ➔ smf_seed_generator()
- Subs.php ➔ call_integration_hook()
- Subs.php ➔ add_integration_function()
- Subs.php ➔ remove_integration_function()
- Subs.php ➔ call_helper()
- Subs.php ➔ load_file()
- Subs.php ➔ prepareLikesContext()
- Subs.php ➔ sanitizeMSCutPaste()
- Subs.php ➔ replaceEntities__callback()
- Subs.php ➔ fixchar__callback()
- Subs.php ➔ entity_fix__callback()
- Subs.php ➔ get_gravatar_url()
- Subs.php ➔ smf_list_timezones()
- Subs.php ➔ inet_ptod()
- Subs.php ➔ inet_dtop()
- Subs.php ➔ _safe_serialize()
- Subs.php ➔ safe_serialize()
- Subs.php ➔ _safe_unserialize()
- Subs.php ➔ safe_unserialize()
- Subs.php ➔ smf_chmod()
- Subs.php ➔ smf_json_decode()
- Subs.php ➔ isValidIP()
- Subs.php ➔ smf_serverResponse()
- Subs.php ➔ set_tld_regex()
- Subs.php ➔ build_regex()

Loading history...
Adding an explicit array definition is generally preferable to implicit array definition as it guarantees a stable state of the code.
Let’s take a look at an example:
As you can see in this example, the array
$myArrayis initialized the first time when the foreach loop is entered. You can also see that the value of thebarkey is only written conditionally; thus, its value might result from a previous iteration.This might or might not be intended. To make your intention clear, your code more readible and to avoid accidental bugs, we recommend to add an explicit initialization $myArray = array() either outside or inside the foreach loop.