CalcBuilder Forum

Linked List

User moon_617 2012-07-16 14:53:14

Linked List: Name=12 months Value=A1_678

Please tell me how to get 678?

Moonsoft support 2012-07-16 15:23:33

Hello,
To get the last part of the value, you have to split the value in two pieces, using the _ sign, and then get the second one, this way:


$pieces = explode("_", $yourlinkedvalue);

$preffix=$pieces; // A1
$value=$pieces; // 678


At this point you will have the number stored at the '$value' variable

You can get more info here:
http://php.net/manual/en/function.explode.php


Hope this helps

User moon_617 2012-07-16 15:54:59

Thank you very much!

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!