i'm trying to use str_replace to delete an item in a serialized array...
but i'm stuck at unserializing.... it always returns the word "Array" instead of my real serialized datas
here is my code
include("db.php");
$query = "SELECT options FROM quebec_calendarcustomfield WHERE calendarcustomfieldid = '1'";
$res = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($res)) {
$a = $row["options"];
$unseri = unserialize($a);
$hmm = str_replace("$title", "", "$unseri");
echo $hmm;