|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
string to char?
Is there a function that can take a string and make it into a array of characters like in Java?
|
|
#2
|
|||
|
|||
|
RE: string to char?
|
|
#3
|
|||
|
|||
|
RE: string to char?
You shouldn't need to. If you have your string in a variable called $str, you can call individual characters using: $str[x] replacing 'x' with a number, e.g.: $str[5]
If you do need to put the characters into a specific array, try this: |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > string to char? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|