X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fphp-memcached%2FDocumentation;h=ef9724b0173bf17481378b7146f4cbf803b2193d;hb=29977ebe4c05cab4cac46fd1a8459e27f50fb153;hp=6a0dce673a4fd55ba67622bb5da805a2ca7e133b;hpb=4e021bb8d4741d5af0f02942fe3c33a19e7fabca;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/php-memcached/Documentation b/docs/php-memcached/Documentation index 6a0dce673a..ef9724b017 100644 --- a/docs/php-memcached/Documentation +++ b/docs/php-memcached/Documentation @@ -166,7 +166,7 @@ EXAMPLE: require 'MemCachedClient.inc.php'; // set the servers, with the last one having an integer weight value of 3 -$options["servers"] = array("10.0.0.15:11000","10.0.0.16:11001",array("10.0.0.17:11002", 3)); +$options["servers"] = ["10.0.0.15:11000","10.0.0.16:11001",["10.0.0.17:11002", 3]]; $options["debug"] = false; $memc = new MemCachedClient($options); @@ -175,7 +175,7 @@ $memc = new MemCachedClient($options); /*********************** * STORE AN ARRAY ***********************/ -$myarr = array("one","two", 3); +$myarr = ["one","two", 3]; $memc->set("key_one", $myarr); $val = $memc->get("key_one"); print $val[0]."\n"; // prints 'one'