PHP: Convert variable to array -


i'm trying convert variable array , split each character using php.

so have variable $name = 'john smith'; how convert to:

array('j','o','h','n',' ','s','m','i','t','h'); 

notice space between john , smith well.

thank you.

there's str_split that.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -