![]() |
How do I combine output from a phrase with a variable...
I need to have something like this:
Phrasetext VariabletextWhere "phrasetext" is the output from a phrase, and "variabletext" is the value of a variable. I have this to start with: Code:
$title = $vbphrase['phrasename'] This will be used in a hack I'm about to release, and I will be sure to credit assistance to whomever's example I use. :) Here's another question for the same project: Can a variable be part of a phrase name? For example, through the URL you pass $var to the script. Can $var be part of the phrase name, as in: Code:
$title = $vbphrase['phrasename_$var']; |
Code:
$title = "\$vbphrase['phrasename".$var."']"; |
Sorry, didn't work.
The output was: $vbphrase['phrasename']So, part of the code was output literally, and the variable was not in the output at all. |
use construct_phrase($vbphrase['phrase'], $var)
|
All times are GMT. The time now is 07:32 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|