1
RemyA
reading an array value from xoops_version.php
  • 2003/12/10 12:02

  • RemyA

  • Documentation Writer

  • Posts: 14

  • Since: 2003/12/5


Can anyone help me out with the following:

in xoops_version.php we can put :

$modversion['tables'][1] = "value_value1";
$modversion['tables'][2] = "value_value2";
$modversion['tables'][3] = "value_value3";
$modversion['tables'][4] = "value_value4";
$modversion['tables'][5] = "value_value5";

not a single problem with that !

The problem start when we want to get tables[3] displayed.

for the var
$modversion['dirname']= "value1";

We could code the easy line
echo $xoopsModule->getVar('dirname');
which will procude the output : value1

What i want is to display the value of tables[3] only

I did try different values so did my collegeau
Could anyone point me out a solution ?

Regards,

Remy

2
skalpa
Re: reading an array value from xoops_version.php
  • 2003/12/10 12:15

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


echo var_dump( $xoopsModule->getInfo('tables') );



Skalpa.>

3
RemyA
Re: reading an array value from xoops_version.php
  • 2003/12/10 12:29

  • RemyA

  • Documentation Writer

  • Posts: 14

  • Since: 2003/12/5


Skalpa ,

first of all i would like to thank you for your quik response !

indeed the echo you pointed prints out all of the values which rely in tables[$i]

Is there a more precise way to get the exact one i want without looping or splitting ?


Login

Who's Online

160 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jun 30
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits