Jump to content

Changing Array Keying


AV1611

Recommended Posts

if I have an array like this:

Array
(
[datshtid] => 000371
[sample] => 000005
[it_date] => 2006-01-12
[insptype] => Final Inspections
[process] => VQ Functional Outputs
[product] => TEK.SS3.UNIT
[descr] => Fit in cradle
[serialno] => S3001015
[failed] => 0
[hi] => 0
[lo] => 0
[units] =>
[actual] => 0
[gonogo] => 1
[passfail] => 0
[step] => 1
[passed] => 1
)

and I want it keyed by numbers ([0] => 000371, etc.) instead,
how can I convert it with PHP.... I am not using MySQL, but ODBC, so I am stuck with what I got I guess

Thanks

Link to comment
https://forums.phpfreaks.com/topic/13030-changing-array-keying/
Share on other sites

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.