<?php $data = <<<NOT_INI [account] user = {user1} pwd = {password1} expdate = 2028-01-01 [account] user = {user2} pwd = {password2} expdate = 2028-01-01 [account] user = {user3} pwd = {password3} expdate = 2028-01-01 NOT_INI; var_export( array_map( 'parse_ini_string', preg_split( '~\R?^\[account]\R~m', $data, 0, PREG_SPLIT_NO_EMPTY ) ) );
You have javascript disabled. You will not be able to edit any code.