Illegal string offset Warning PHP

Please try this way…. I have tested this code…. It works….

$memcachedConfig = array("host" => "127.0.0.1","port" => "11211");
print_r($memcachedConfig['host']);

Leave a Comment