I will be getting data in this format. But its not necessary that fields will contain full according to their length. Like Emp-key is of 10 byte but
Emp-name is of 20 byte.
I want to get the data in this format.
Emp-key Emp-name

A:

You can use the following code to get the data in the format you want.
$data = array();
$data['Emp-key'] = $