Jump to content

Generating Content Based on Specified Value


Disturbed One

Recommended Posts

Hello,

I am in the middle of coding a dynamic PDF generation script.

Let's say we have these variables:
[code]$input_number = 4;
$output_data  "---";[/code]

How can I make it so that $end_result will display $output_data as many times as the input number?
This would be equivalent to
[code]$end_result = $output_data . $output_data . $output_data . $output_data;[/code]
BUT we have to remember that this is a dynamic number, so the number of repetitions will always change.

Thanks for your time,
Anthony Coy

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.