![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zablokowani Postów: 64 Pomógł: 0 Dołączył: 29.04.2004 Ostrzeżenie: (60%) ![]() ![]() |
Jak najszybciej i najprosciej ze stringa stworzyc tablice elementow jedno-bajtowych (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
Przyklad: $s='abcdefgh'; -> $a=array('a','b','c','d','e','f','g','h'); Probowalem tak jak w JS ( a=s.split('') ), czyli $a=explode('',$s). Niestety cos mi nie chce dzialac. Czy da sie to zrobic bez uzywania 'for'/'while' (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) Ten post edytował lunter 11.07.2005, 12:00:04 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 2 262 Pomógł: 21 Dołączył: 3.05.2004 Skąd: Sopot, Krakow, W-wa Ostrzeżenie: (0%) ![]() ![]() |
dr_bonzo - takowej funckji nie ma (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) Chyba raczej str_split" title="Zobacz w manualu PHP" target="_manual
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 12.10.2025 - 02:08 |