Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 if string conditional
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #5
RE: if string conditional
<setvar r>array('text 1', 'text 2', 'text 3')</setvar>
<?=$GLOBALS['tplvars']['r'][array_rand($GLOBALS['tplvars']['r'])?>

don't work

i mean not text 1,2,3..but string like this

<setvar r>array('{string1}', '{string2}', '{string3}')</setvar>
<?=$GLOBALS['tplvars']['r'][array_rand($GLOBALS['tplvars']['r'])?>

i use this one but it doesn't work
08-29-2012 07:08 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
if string conditional - bekti - 08-29-2012, 01:14 PM
RE: if string conditional - ZiNgA BuRgA - 08-29-2012, 03:25 PM
RE: if string conditional - bekti - 08-29-2012, 03:57 PM
RE: if string conditional - ZiNgA BuRgA - 08-29-2012, 04:51 PM
RE: if string conditional - bekti - 08-29-2012 07:08 PM
RE: if string conditional - RateU - 08-30-2012, 01:11 AM
RE: if string conditional - bekti - 08-30-2012, 01:21 AM
RE: if string conditional - leefish - 08-30-2012, 01:36 AM
RE: if string conditional - bekti - 08-30-2012, 02:02 AM

 Standard Tools
Forum Jump: