Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textarea with multiple = line breaks in array #257

Open
glukinho opened this issue Dec 27, 2017 · 0 comments
Open

textarea with multiple = line breaks in array #257

glukinho opened this issue Dec 27, 2017 · 0 comments

Comments

@glukinho
Copy link

Hi,
I'm creating a PHP report.
I put a variable header:

// VARIABLE: { name: "numbers", display: "номера", type: "textarea", multiple: true }

I put some numbers into textarea line by line:

123
456
789

I want them to appear as PHP array:

$numbers = array( 0 => '123', 1 => '456', 2 => '789');

The array appears, but I see some line breaks in its elements. I copy from debug mode:

$numbers = array (
  0 => '123
',
  1 => '456
',
  2 => '789',
);

It seems parsing textarea to array goes bad.

Is it a bug or I misunderstood something?
Can provide some additional info...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant