vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help trying to understand a few bits of code. (https://vborg.vbsupport.ru/showthread.php?t=214067)

powerful_rogue 05-19-2009 05:25 PM

Help trying to understand a few bits of code.
 
Hi,

Im just trying to decipher a piece of code and im getting there slowly! There are however a few bits that im trying to get my head around and was wondering if I were to post them if anyone could just give a brief explanation of what they mean.

PHP Code:

$vboptions      =& $vbulletin->options

Now I know that this is a variable and if it didnt have the "&" it would mean that variable $vboptions is the same as $vbulletin->options, however im not sure what it means when it has the "=&" Ive tried searching w3school and also php.net but not having much luck location the "=&"

Dismounted 05-20-2009 05:59 AM

"=&" means assign the left with the right by reference, instead of by value. This is easy to grasp if you're coming from another programming background, but can be confusing for newcomers.

Also see the PHP site for some explanation.

powerful_rogue 05-20-2009 08:14 AM

Thanks dismounted. I'll have a read up on that.


All times are GMT. The time now is 04:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00986 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete