Exploding a String In PHP
Posted
by streetparade
on Stack Overflow
See other posts from Stack Overflow
or by streetparade
Published on 2010-03-19T11:31:47Z
Indexed on
2010/03/19
11:41 UTC
Read the original article
Hit count: 262
How do i explode this string '||25||34||73||94||116||128'
i need to have a array like this
array (
0 => '25',
1 => '34',
2 => '73',
3 => '94',
4 => '116',
5 => '128'
)
explode("||", $array); didnt work for me i get this array
array (
0 => '',
1 => '25',
2 => '34',
3 => '73',
4 => '94',
5 => '116',
6 => '128',
)
© Stack Overflow or respective owner