You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Can't use strlen() in a custom script

edited Jul 12, 2016 11:33PM in Reporting & Analytics for B2C Service 4 comments

Content

Is there a reason I can't? 

This works:

$label_one = "This is some text";
$label_two = "This is the second val";
$rows[0][1]->val = $label_one;
$rows[0][2]->val = $label_two;
$rows[0][1]->val = substr($label_two,4,7);

 

This does not:

$label_one = "This is some text";
$label_two = "This is the second val";
$rows[0][1]->val = $label_one;
$rows[0][2]->val = $label_two;
$rows[0][1]->val = strlen($label_two);

Version

Nov 2015

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!