tags:

views:

34

answers:

2

=== Update ===

I actually resolved it as : new_array=array_keys($arrayold)

Actually my question was quoted wrongly.

Thanks Anyways

How to Assign an Array with literal string index to an array with numeric index. [IN PHP]

Both have the same length...for example

Literal >>> array(HELL0=>somevalue1,BYE=>somevalue2) Numeric index >> array(1=>somevalue1,2=>somevalue2) [Expected result in second array]

Both have same length / count of values 2.

Pls help ASAP Anita

A: 

Use array_values. The indexing will start with 0 though.

Artefacto
A: 

Do you mean something like array_values?

Emil Vikström