The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Quote:
Yup - to keep with good coding practices Strings should be wrapped in either ' ... ' or " ..." and numbers can be left as is |
#12
|
||||
|
||||
Should be '...' for stings and "..." for html or holding a variable togeather if you want to goto good codeing practices.
|
#13
|
|||
|
|||
' ... ' is a simple string which is not parsed by PHP for variables, etc.
" ... " is a complex string which is parsed (and is therefore slightly less efficient). $mystring = '<a href="'.$link.'">Test URL</a>'; $mystring = "<a href=\"$link\">Test URL</a>"; both produce the same result, however the first example is more efficiant and (IMO) easier to read and work with. |
#14
|
||||
|
||||
$mystring = '<a href="$link">test url</a>';
Should work? |
#15
|
|||
|
|||
in that case it will just print exactly that as php does not parse the string for variables
|
#16
|
||||
|
||||
Unless of course that string gets passed through eval(); later on
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|