change empty array element to a value

Posted by user295189 on Stack Overflow See other posts from Stack Overflow or by user295189
Published on 2010-06-11T22:07:44Z Indexed on 2010/06/11 22:12 UTC
Read the original article Hit count: 339

Filed under:
|
|
|
|

i have an array like this Array ([0]=>'some values'[1]=>'')

I want to change the empty elemnt of an array to a value of 5

how can I do that

thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about php5