php string in to array (key and val must be same string)

Posted by Bharanikumar on Stack Overflow See other posts from Stack Overflow or by Bharanikumar
Published on 2010-04-05T09:09:26Z Indexed on 2010/04/05 9:13 UTC
Read the original article Hit count: 302

Filed under:
|

Hi ,

Using explode i have converted the string into array ,

But the array look like Array ( [0] => root)

But i want i make my array somthing like Array ( [root] => root)

How to make this manner..

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about array