How to deduce all results from a cycle?
Example:
<?php for($i = 1; $i <= 10; $i++) { $data = array('ФИО1', 'ФИО2', 'ФИО3'); print_r($data); } print_r($data); print_r($data); в цикле выводит 10 раз $data print_r($data); за циклом выводит только последний результат $data I need to access the variable with all the data for further processing and saving to the excel file.
And if in a cycle to make record of an array in mysql and already from there to take data?