Pokaż kod, bo zrobiłem kilka testów i ...
1. Kod
<pre><?php
$a = "a:3:{i:0;s:3:\"foo\";i:1;s:3:\"bar\";i:2;s:11:\"foo bar you\";}";
print_r( unserialize( stripslashes( $a ) ) );
?></pre>
Cytat
Array
(
[0] => foo
[1] => bar
[2] => foo bar you
)
2. Kod
<pre><?php
$a = 'a:3:{i:0;s:3:\"foo\";i:1;s:3:\"bar\";i:2;s:11:\"foo bar you\";}';
print_r( unserialize( stripslashes( $a ) ) );
?></pre>
Cytat
Array
(
[0] => foo
[1] => bar
[2] => foo bar you
)
3. Kod
<pre><?php
$a = "a:3:{i:0;s:3:\"foo\";i:1;s:3:\"bar\";i:2;s:11:\"foo bar you\";}";
print_r( unserialize( $a ) );
?></pre>
Cytat
Array
(
[0] => foo
[1] => bar
[2] => foo bar you
)
4. Kod
<pre><?php
$a = 'a:3:{i:0;s:3:\"foo\";i:1;s:3:\"bar\";i:2;s:11:\"foo bar you\";}';
print_r( unserialize( $a ) );
?></pre>
Cytat
Notice: unserialize() [function.unserialize]: Error at offset 9 of 63 bytes in E:\usr\www\_temp\index.php on line 4
P.S.Proszę poprawić temat wątku. Nie jest zgodny z Zasadami pisania na frum
Przedszkole.